Functions used for syntactic and lexical analysis.
More...
Functions used for syntactic and lexical analysis.
◆ parseProgram()
Performs the initial syntactic-driven translation of the source code. This function is mostly a wrapper around yyparse().
- Parameters
-
fn | The path to the source code file to be compiled. |
- Returns
- The program object produced.
◆ yylex()
Scans the input up to the next token.
- Note
- This function is defined in Flex-generated code.
- Returns
- The next token identifier.
Definition at line 31 of file scanner.l.
◆ curFileLoc
The current location in the file being read by the scanner.
Definition at line 11 of file scanner.l.
◆ yyin
The file currently being read by the scanner.
- Note
- This global variable is used by Flex-generated code.