Page 1 of 1

Rapid Bull Alpha Happy New Year Preview!

Posted: Mon Jan 01, 2007 12:53 am
by Trond
Happy New Year!

Image

Link: Direct download
Link: Forums

Rapid Bull is a basic-like language. It is the rewritten version of Lasic, and produces much better code than its predecessor. It also has more features already, with 4 data types, subs and functions, local variables, function parameters (well, one per function), and automatic assembling and linking.

The language:
  • Four types: Int, Byte, Word and Float (And long=int and single=float)
  • Literal numbers including floating-point numbers like 1.5
  • Eight operators, in order of precedence:
    • - (unary minus]
    • = < >
    • * /
    • + -
    Use parentheses to force the expression to be evaluated in a certain order.
    Note that a division always returns a float.
  • Comparision operators returns 1 or 0 for true or false, so you can do this: a = b = c. (The generated code for the IF statement is still good!)
  • Variables must be declared before they are used (dim name[, name] as type)
  • Highly optimized (except for one small case which will be fixed) control flow contructs:
    • IF <condition> [.. ELSE] .. ENDIF
    • REPEAT .. UNTIL <condition>
    • WHILE <condition> .. WEND
  • Comments (start with ' and goes to the end of the line)
  • Inline asm (starts with ! and goes to the end of the line, must start at the start of a line.)
  • Subs: procedures with no return value. They can't be called where you expect a result from them (ie a = Sub() is not allowed)
  • Functions: procedures with a return value
  • Local variables in subs and functions, shadows global ones
  • ONE parameter (or none) per sub or function
  • Compiler options:
    • -o: Compile and assemble, but do not link
    • -a: Compile to asm only
    • If no option is specified, an asm file, an object file, and an executable file will be generated. You can't specify an option without a filename.

Posted: Mon Jan 01, 2007 6:20 am
by va!n
@Trond:
Nice work... sounds very interesting... i am still looking forward to your project...

@all:
I have done a small n simple RapidBull IDE in a real hurry... this is my little happy new year gift for you. download

Please copy the IDE tool into the RapidBull folder to get it work.

Posted: Mon Jan 01, 2007 12:15 pm
by dontmailme
Impressive fireworks.... I'd like to see the sourcecode for that ;)

Good work so far :D

Posted: Mon Jan 01, 2007 2:32 pm
by Trond
va!n wrote:@Trond:
Nice work... sounds very interesting... i am still looking forward to your project...

@all:
I have done a small n simple RapidBull IDE in a real hurry... this is my little happy new year gift for you. download

Please copy the IDE tool into the RapidBull folder to get it work.
Wow thanks.

Posted: Mon Jan 08, 2007 6:36 pm
by va!n
@Trond:
Seems your forum is sometimes down / not reachable :(