C# Class AIMA.Core.Logic.Common.Parser

Show file Open project: PaulMineau/AIMA.Net

Protected Properties

Property Type Description
_lookAhead int
lexer Lexer
lookAheadBuffer AIMA.Core.Logic.Common.Token[]

Public Methods

Method Description
parse ( String input ) : ParseTreeNode

Protected Methods

Method Description
consume ( ) : void
fillLookAheadBuffer ( ) : void
isEndOfInput ( Token t ) : bool
loadNextTokenFromInput ( ) : void
lookAhead ( int i ) : Token
match ( String terminalSymbol ) : void

Method Details

consume() protected method

protected consume ( ) : void
return void

fillLookAheadBuffer() protected method

protected fillLookAheadBuffer ( ) : void
return void

isEndOfInput() protected method

protected isEndOfInput ( Token t ) : bool
t Token
return bool

loadNextTokenFromInput() protected method

protected loadNextTokenFromInput ( ) : void
return void

lookAhead() protected method

protected lookAhead ( int i ) : Token
i int
return Token

match() protected method

protected match ( String terminalSymbol ) : void
terminalSymbol String
return void

parse() public abstract method

public abstract parse ( String input ) : ParseTreeNode
input String
return ParseTreeNode

Property Details

_lookAhead protected property

protected int _lookAhead
return int

lexer protected property

protected Lexer,AIMA.Core.Logic.Common lexer
return Lexer

lookAheadBuffer protected property

protected Token[],AIMA.Core.Logic.Common lookAheadBuffer
return AIMA.Core.Logic.Common.Token[]