Jump to content

Compiler/lexical analyzer: Difference between revisions

Line 2,010:
 
{{out|case=TestCase4}}
<pre>prompt$ ./lexer <testcases/TestCase4
2 1 Keyword_print
2 6 LeftParen
2 7 Integer 42
2 9 RightParen
2 10 Semicolon
3 1 Keyword_print
3 6 LeftParen
3 7 String "\nHello World\nGood Bye\nok\n"
3 38 RightParen
3 39 Semicolon
4 1 Keyword_print
4 6 LeftParen
4 7 String "Print a slash n - \\n.\n"
4 33 RightParen
4 34 Semicolon
95 1 End_of_input</pre>
5 1 Keyword_print
5 6 LeftParen
5 7 String "x"
5 10 RightParen
5 11 Semicolon
6 1 Keyword_print
6 6 LeftParen
6 7 String "\\"
6 11 RightParen
6 12 Semicolon
7 1 Keyword_print
7 6 LeftParen
7 7 String "\n"
7 11 RightParen
7 12 Semicolon
9 1 End_of_input</pre>
 
=={{header|Common Lisp}}==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.