+ 2

Someone help me with interpreters

Can you show me a small interpreter pseudo code that can: -Print string -Declare variables -An if statement

21st May 2017, 11:12 AM
Complex
Complex - avatar
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!")
25th May 2017, 9:52 AM
Dinmukhamed Mailibay
Dinmukhamed Mailibay - avatar
+ 2
Thanks :) I actually figured it out, we made 2 languages by the help of me and my team :) 1 compiled and 1 interpreted
25th May 2017, 1:07 PM
Complex
Complex - avatar