Code center > Darwinbots3

DNA command line interpreter

<< < (3/4) > >>

Botsareus:

--- Quote ---You can create your own sysvars by using the def metatag.
--- End quote ---

Can you give me an example?

What about constants like:

--- Quote ---7 label ab
--- End quote ---

ab will always return 7?

Numsgil:
Here's a quick example of using the command line interpreter.  Type enter at the end of each line, in the order given, and watch what happens:

10
20
add
def mylabel 100
mylabel
100 .mylabel
*mylabel
mylabel ref
start
50 .mylabel
50 *mylabel add mylabel sub

Botsareus:
Thank you Numsgil.

Prsn828:
I just finished a major update on the DNA system.
Sysvars have not been chosen yet, but it can read them once it knows what they are now.
Also, it is more robust, allowing for bad whitespace and mixed cases (StORe = store) now.

Moonfisher:
Allowing whitespaces sounds like a good idea, not sure I like allowing mixed cases.
I kinda like compilers to be very strict, they shouldn't swallow anything (Unlike a good gf   )

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version