Basicpp 0.1
I have just made the initial release of Basicpp. It is a BASIC preprocessor that translates a slightly higher level BASIC code into a regular 8-bit machine BASIC code.
Here are some examples of what you can do (all of that is translated to valid MSX-BASIC code):
There's a lot more, check the documentation for some interesting examples, including a way to import ASM symbols from Pasmo.
Here are some examples of what you can do (all of that is translated to valid MSX-BASIC code):
--
$enum rooms {
bedroom,
corridor,
hall,
kitchen,
sz
}
DIM R$($rooms.sz)
R$($rooms.bedroom) = "This is the bedroom"
X=15
$if X < 10 {
PRINT "X is smaller than 10"
} $else {
PRINT "X is greater or equal 10"
$if X = 15 {
PRINT "X is actually 15"
}
}
PRINT "This is an example."
$hello:
PRINT "Hello world!"
500 PRINT "I can use line numbers too!"
PRINT "And now this is line 501"
GOTO $hello
--
There's a lot more, check the documentation for some interesting examples, including a way to import ASM symbols from Pasmo.
0 Comments:
Post a Comment
Links to this post:
Create a Link
<< Home