Compiler/lexical analyzer: Difference between revisions
Content deleted Content added
Line 2,010: | Line 2,010: | ||
{{out|case=TestCase4}} |
{{out|case=TestCase4}} |
||
<pre>prompt$ ./lexer <testcases/TestCase4 |
<pre>prompt$ ./lexer <testcases/TestCase4 |
||
2 1 Keyword_print |
2 1 Keyword_print |
||
2 6 LeftParen |
2 6 LeftParen |
||
2 7 Integer 42 |
2 7 Integer 42 |
||
2 9 RightParen |
2 9 RightParen |
||
2 10 Semicolon |
2 10 Semicolon |
||
3 1 Keyword_print |
3 1 Keyword_print |
||
3 6 LeftParen |
3 6 LeftParen |
||
3 7 String "\nHello World\nGood Bye\nok\n" |
3 7 String "\nHello World\nGood Bye\nok\n" |
||
3 38 RightParen |
3 38 RightParen |
||
3 39 Semicolon |
3 39 Semicolon |
||
4 1 Keyword_print |
4 1 Keyword_print |
||
4 6 LeftParen |
4 6 LeftParen |
||
4 7 String "Print a slash n - \\n.\n" |
4 7 String "Print a slash n - \\n.\n" |
||
4 33 RightParen |
4 33 RightParen |
||
4 34 Semicolon |
4 34 Semicolon |
||
⚫ | |||
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 |
|||
⚫ | |||
=={{header|Common Lisp}}== |
=={{header|Common Lisp}}== |