Mouse, the LanguageLast changed on Monday, April 23, 2007 Analysis of the Hello, World! program :
"Hello, World" '! !' $The double quote (") is the output string command in Mouse. All characters between the double quotes are sent to the screen. To get the exclamation point on the screen we can't just put an exclamation point inside the double quotes because exclamation points inside strings cause any text that follows them to display on a new line! The two-character command 'c (in our current case c is !) "pushes" the character c onto Mouse's "Stack." The two-character command !' is the output character command in Mouse. This "pops" the character on Mouse's "Stack" off the "Stack" and puts it on the screen. Mouse programs end with a $.
|