Created
August 24, 2016 23:05
-
-
Save quickgrid/3480a3ee91e2bb5561a9aef90a349624 to your computer and use it in GitHub Desktop.
Sample output file, produced after running the flex lexical analyzer code for the given sample input file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MULTILINE COMMENT: | |
/* | |
This is a comment | |
*/ | |
Line Count:1 | |
Line Count:2 | |
Pascal Comment:{Another} | |
Line Count:3 | |
Line Count:4 | |
Comment:// And another | |
Line Count:5 | |
Line Count:6 | |
MULTILINE COMMENT: | |
/* Another */ | |
Line Count:7 | |
Line Count:8 | |
Keyword:IF | |
Variable:x | |
RELOP:>= | |
Number:14 | |
Keyword:THEN | |
Line Count:9 | |
Keyword:BEGIN | |
Line Count:10 | |
Variable:x | |
RELOP:= | |
Variable:x | |
ADDOP:+ | |
Number:2 | |
Line Count:11 | |
Keyword:END | |
Line Count:12 | |
Line Count:13 | |
Keyword:PROCEDURE | |
Symbols:( | |
Number:3.3E+9 | |
Symbols:) | |
Line Count:14 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment