Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 02 Sep 2014, 15:19
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
Bacon template
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [2 Posts]  
Author Message
PaulR

Joined: 04 May 2005
Posts: 243
Location: UK

PostPosted: Tue 19 Mar 2013, 16:10    Post subject:  Bacon template  

Hello,

It's been a while since I used Puppy (last log in here 2006!) and have to say it's now a well-polished OS (Slacko 5.5 - amazing on my old Thinkpad T42!).

Anyway, I'm just taking a look at Bacon and it looks like fun; however, being the lazy type and not sure if Geany or whatever will do auto capitalization of Bacon keywords, a little browsing shows that using the -j option when building along with a bunch of #defines will make life easy, for example...

#define print PRINT
#define for FOR
#define to TO
#define next NEXT
... etc

for loop=0 to 10
print "Puppy ";
next


..will compile nicely.

Therefore, I intend to make an include file with just these #defines and use it as a template in all projects... UNLESS someone has already done this (if so please point me at the file Very Happy ).

If anyone else would like a copy of the file I'll post it here when it's cooked.

Paul
Back to top
View user's profile Send private message 
PaulR

Joined: 04 May 2005
Posts: 243
Location: UK

PostPosted: Wed 20 Mar 2013, 12:07    Post subject:  

Slight problem with this idea - the first include and the first define would have to be upper case anyway Embarassed

Could always make a pre-pre-processor that converts keywords to uppercase before compiling but that would upset any regular text (strings, comments or variable name for example!) within the source file lol.

Probably best to shelve this idea! Rolling Eyes
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [2 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Off-Topic Area » Programming
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0402s ][ Queries: 12 (0.0069s) ][ GZIP on ]