Omnimaga > BatLib

BASIC ReCode v2.00

(1/19) > >>

Xeda112358:
Now that I have put some serious work into BASIC ReCode, I figured a topic should be started to explain routines, help people out, and to share ideas. First off, here is what I have managed to make using the current version of ReCode:

That took 809 bytes of memory, but you can see it has speed and ability. You can download a PDF of the commands and syntax below, but as a warning, the While command will fail miserably if there is an End statement inside of it. So for example:


--- Code: ---While getKey≠15
getKey→A
If A=9
Then
Fill(2
DispGraph
End
End
--- End code ---
This will fail because it will try to pick up at the second End when it exits the loop and that End will send the parser to another random spot in memory. This isn't a problem if the parser can reach a Stop, but it isn't likely. For now, using a trick that results from the way the parser is designed, you can avoid If Then...End statements by putting a space after non-text commands (text is read until it reaches a newline token). For example:

--- Code: ---While getKey≠15
getKey→A
If A=9
Fill(2 DispGraph
End
--- End code ---
It uses less memory, anyway and is faster, but I added the If Then...End form for readability.

Here is the readme to ReCode:

Munchor:
Woah! It looks awesome, seems like Axe too, really fast for an Axe program!

AWESOME.

Xeda112358:
Oh, that's not Axe... This is an interpreted language, like BASIC!

Munchor:

--- Quote from: Xeda112358 on March 13, 2011, 02:35:15 pm ---Oh, that's not Axe... This is an interpreted language, like BASIC!

--- End quote ---

I know, but it is a language with BASIC's syntax but better speed and capabilities.
Not the compiled part.

Xeda112358:
Yep ^_^ The only problem is that when I started it, I hadn't heard of Axe, so I modeled the math differently :( Apparently Axe does math in the exact opposite order as ReCode, so it could be confusing for Axe users !_!

Navigation

[0] Message Index

[#] Next page

Go to full version