public class Main
extends java.lang.Object
This class creates a lexical analyzer and feeds him with the entries of the user.
LexicalAnalyzer
public static void main(java.lang.String[] args)
Executed method.
This method creates the lexical analyzer, then ask the user to enter S-COBOL code lines. It feeds them to the analyzer until the user enters an empty String (by simply hitting the return key without entering anything). After each line of code, the method prints the tokens found in the line by the analyzer or notify the user of the failure of the analysis. When the user stops entering code, the method asks the analyzer to print the table of symbols on the standard output.
args
- LexicalAnalyzer.nextToken(String, boolean, int)
,
LexicalAnalyzer.printSymbolsTable()