So…..First, I made some changes in the syntax of the language:
- from now on every operation (
-, +, /, *, %, &, |, ^, ~) must be preceded byperform, likeperform x+1orperform x&2
I also started to do the interpreter in rust:
-token.rs (defines every function as a word)
-ast.rs (makes structures with tokens)
Problems in interpreter till now:
-you can write just perform x+1 and not perform 1+1 , cus if you write perform 1+1 it has to return somewhere and perform x+1 just increments x with 1, but this eliminates the posibility to declare x with an operation (I mean the value), like set x perform 1+1
What do you think should I keep perform????? Anyway see you in next devlog!!
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.