C# Class GOLD.Engine.Parser

Datei anzeigen Open project: software-engineering-amsterdam/poly-ql

Public Methods

Method Description
LoadEGT ( BinaryReader reader ) : bool
Parse ( TextReader reader ) : bool
Parse ( string &input ) : bool
Parser ( ) : System

Protected Methods

Method Description
OnCompleted ( object obj ) : void
OnGroupError ( ) : void
OnInternalError ( ) : void
OnLexicalError ( int>.Tuple position, string symbol ) : void
OnNotLoadedError ( ) : void
OnReduction ( Reduction reduction ) : void
OnSyntaxError ( int>.Tuple position, string symbol, string expected ) : void
OnTokenRead ( Token token ) : void

Private Methods

Method Description
DoReduction ( Stack tokenStack, LookAheadBuffer lookAheadBuffer, ushort &lalrState, LRAction parseAction ) : bool
HandleSyntaxError ( LRActionList actionList, Token read ) : void
LookAheadDFA ( LookAheadBuffer lookAheadBuffer ) : Token
ProduceToken ( Stack groupStack, LookAheadBuffer lookAheadBuffer ) : Token

Method Details

LoadEGT() public method

public LoadEGT ( BinaryReader reader ) : bool
reader System.IO.BinaryReader
return bool

OnCompleted() protected method

protected OnCompleted ( object obj ) : void
obj object
return void

OnGroupError() protected method

protected OnGroupError ( ) : void
return void

OnInternalError() protected method

protected OnInternalError ( ) : void
return void

OnLexicalError() protected method

protected OnLexicalError ( int>.Tuple position, string symbol ) : void
position int>.Tuple
symbol string
return void

OnNotLoadedError() protected method

protected OnNotLoadedError ( ) : void
return void

OnReduction() protected method

protected OnReduction ( Reduction reduction ) : void
reduction Reduction
return void

OnSyntaxError() protected method

protected OnSyntaxError ( int>.Tuple position, string symbol, string expected ) : void
position int>.Tuple
symbol string
expected string
return void

OnTokenRead() protected method

protected OnTokenRead ( Token token ) : void
token Token
return void

Parse() public method

public Parse ( TextReader reader ) : bool
reader System.IO.TextReader
return bool

Parse() public method

public Parse ( string &input ) : bool
input string
return bool

Parser() public method

public Parser ( ) : System
return System