+ 2
Someone help me with interpreters
Can you show me a small interpreter pseudo code that can: -Print string -Declare variables -An if statement
2 odpowiedzi
+ 2
Didn't quite get your question and hppe it's not a homework question. Alright, Python is an interpreted language, so I'll go for Python-style pseudocode but extended to declarations
DECLARE someString = "Hello C0MP3LX" : STRING
DECLARE isItRaining = False : BOOLEAN
IF isItRaining == False:
PRINT (someString)
ELSE:
PRINT ("Error, it is raining!")
+ 2
Thanks :) I actually figured it out, we made 2 languages by the help of me and my team :)
1 compiled and 1 interpreted