fri.patterns.interpreter.parsergenerator.parsertables
Class LALRParserTables

java.lang.Object
  |
  +--fri.patterns.interpreter.parsergenerator.parsertables.AbstractParserTables
        |
        +--fri.patterns.interpreter.parsergenerator.parsertables.SLRParserTables
              |
              +--fri.patterns.interpreter.parsergenerator.parsertables.LRParserTables
                    |
                    +--fri.patterns.interpreter.parsergenerator.parsertables.LALRParserTables
All Implemented Interfaces:
ParserTables, java.io.Serializable

public class LALRParserTables
extends LRParserTables

Parser table generator for LALR interpretation.

Author:
(c) 2000, Fritz Ritzberger
See Also:
LRParserTables, Serialized Form

Field Summary
 
Fields inherited from class fri.patterns.interpreter.parsergenerator.parsertables.SLRParserTables
firstSets, followSets, syntaxNodes
 
Fields inherited from class fri.patterns.interpreter.parsergenerator.parsertables.AbstractParserTables
CELLWIDTH, gotoTable, nonterminals, parseTable, symbols, syntax, terminals, terminalsWithoutEpsilon
 
Fields inherited from interface fri.patterns.interpreter.parsergenerator.ParserTables
ACCEPT, ERROR, SHIFT
 
Constructor Summary
LALRParserTables(Syntax syntax)
          Calls super.
 
Method Summary
protected  fri.patterns.interpreter.parsergenerator.parsertables.LRSyntaxNode createStartNode(fri.patterns.interpreter.parsergenerator.parsertables.Nullable nullable, fri.patterns.interpreter.parsergenerator.parsertables.FirstSets firstSets)
          Factory method: constructing a root node for LALR syntax nodes.
static void main(java.lang.String[] args)
          Test main dumping parser tables.
 
Methods inherited from class fri.patterns.interpreter.parsergenerator.parsertables.LRParserTables
init
 
Methods inherited from class fri.patterns.interpreter.parsergenerator.parsertables.SLRParserTables
dump, dumpFirstSet, dumpFollowSet, dumpSet, dumpSyntaxNode, dumpSyntaxNodes, freeSyntaxNodes, generateGoto, generateParseAction, getAllSymbols, insertTableLine, report
 
Methods inherited from class fri.patterns.interpreter.parsergenerator.parsertables.AbstractParserTables
construct, dumpGoto, dumpParseAction, dumpRule, dumpSyntax, dumpTable, dumpTables, getExpected, getGotoState, getParseAction, getSyntax, getTerminals, toSourceFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LALRParserTables

public LALRParserTables(Syntax syntax)
                 throws ParserBuildException
Calls super.

Method Detail

createStartNode

protected fri.patterns.interpreter.parsergenerator.parsertables.LRSyntaxNode createStartNode(fri.patterns.interpreter.parsergenerator.parsertables.Nullable nullable,
                                                                                             fri.patterns.interpreter.parsergenerator.parsertables.FirstSets firstSets)
Factory method: constructing a root node for LALR syntax nodes.

Overrides:
createStartNode in class LRParserTables

main

public static void main(java.lang.String[] args)
Test main dumping parser tables.