Home | Notes | Languages | Programs | Homework |
SIMPLE LANGUAGE TESTS |
SIMPLE Test Case 1 |
NOTE: Output of SIMPLE interpreter is shown in italics
var orange var exclamation set orange "GO HOKIES!SIMPLE error: Missing "
set exclamation "!" set orange GO HOKIES!"SIMPLE error: Unknown Identifier - GO
var maroon write maroon
var exitSIMPLE error: Reserved word - exit
set orange "GO " concatenate maroon orange exclamation var OrangeAndMaroon var egnaro set egnaro "SEIKOH" reverse orange egnaro comment var OrangeAndMaroon var i_want_this_to_be_a_really_really_long_identifier_filled_with_nothing var OrangeAndMaroonSIMPLE error: Duplicate declaration - OrangeAndMaroon
concatenate orange orange exclamation concatenate OrangeAndMaroon maroon orange split orange maroon OrangeAndMaroon exclamation concatenate OrangeAndMaroon orange maroon write OrangeAndMaroonGO HOKIES!
write "Beat Rutgers"Beat Rutgers
exit
Home | Notes | Languages | Programs | Homework |