Aglang devlog #9
there now is a compare statement in aglang!
i had this idea for a while, but i thought it would make the language too easy… but i ended up making it anyway!
together with it, i made labels too!
so if, for example, you wanted to skip a section of code if the number 2 is bigger than 1, you would write it like so:
10?1; $ compare 2 (10 in binary) and 1 (still 1 in binary) $
^.; $ if 2 is bigger, jump to label . (labels are can only be named with dots, it would have been to easy otherwise :) ) $
(other code...)
~.; $ define label . $
(do more stuff...)
and this makes the fibonacci example easier, since now, instead of using counters in the stack, you can simply check if the current number isnt 233 and go back to a previous label.
i still have to implement it in the web interpreter, but i guess it shouldnt take long!
next step: windows compiler! (note: will probably require mingw to be installed)
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.