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 exit
SIMPLE 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 OrangeAndMaroon
SIMPLE error: Duplicate declaration - OrangeAndMaroon
concatenate orange orange exclamation
concatenate OrangeAndMaroon maroon orange
split orange maroon OrangeAndMaroon exclamation
concatenate OrangeAndMaroon orange maroon
write OrangeAndMaroon
GO HOKIES!
write "Beat Rutgers"
Beat Rutgers
exit


Home  |   Notes  |   Languages  |   Programs  |   Homework

copyright © 2000 Virginia Tech, ALL RIGHTS RESERVED
Last modified: October 25, 2000, 08:11:42 EDT, by Lenwood S. Heath <heath@cs.vt.edu>