Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
freeBASIC (a 32-bit QB-syntax compatible compiler) preview..
@pollack mister 30kb posting strikes back hehe....

well, i really don't like the idea of introducing new runtimelib features like sound and graphics commands, i would want the language and runtimelib to be as small as possible. i guess it's not really hard to do

'$include: 'bass.bi'

the only thing that needs to be ported to fb is the headerfiles so...

and if someone writes a wrapper for that lib, there's also no need to do the initstuff yourself if you prefer to use the lib at such an easy-to-use level

BTW,

i just finished the first version of the preprocessor, intended to be used in conjunction with freebasic.

http://ratatoskr.bad-logic.com/ppbasic.rar

it's a small handy preprocessor that allows

* including files ( '$include: 'filename.bi' )
* setting defines ( '$define DEFINE_NAME )
* conditionals ('$ifdef/ifndef DEFINE_NAME {'$else } '$endif )

with this limited command set you are able to implement include guards (necessary if an includefile gets included several times, you don't have to care about duplicate definitions anymore) and conditional compilation ( for example if you have os specific stuff within functions and the like )

i hope it's usefull to some extend. testing would be appreciated

i may release some further versions including the following addons

* '$elseif branches for conditionals
* value assignement to defines and replacement in source ('define DEFINE_NAME value)
* macros (just maybe really just maybe....)

any other ideas can be posted here or on forum.bad-logic.com->projects
quote="NecrosIhsan"]
[Image: yagl1.png]
[/quote]
Reply


Messages In This Thread
Excelent work! - by Ravyne - 10-28-2004, 11:43 AM
First impression... - by ToohTooh - 11-01-2004, 03:30 PM
freeBASIC (a 32-bit QB-syntax compatible compiler) preview.. - by marzecTM - 11-05-2004, 06:55 AM
Random naive questions - by dilettante - 11-14-2004, 10:39 AM

Forum Jump:


Users browsing this thread: 3 Guest(s)