SYNOPSIS use MarpaX::G4::Symboltable; my $symboltable = new MarpaX::G4::Symboltable;

my $grammartext = readFile($infile); my $data = MarpaX::G4::Parser::parse_rules($grammartext); $symboltable->importParseTree($data); $symboltable->validateSymbolTable();

DESCRIPTION Import the rules from the ANTLR4 parse tree into a symbol table. 'validateSymbolTable' does a depth-first tree traversal of the symbol table to produce a report of productions and terminal symbols.