C# Class SimpleParser.Parser.Evaluator

ファイルを表示 Open project: aloker/ExampleParser

Public Methods

Method Description
Evaluate ( string expression ) : void
Evaluator ( ) : Antlr.Runtime
Evaluator ( Storage storage ) : Antlr.Runtime

Protected Methods

Method Description
OnError ( string source, string message ) : void

Private Methods

Method Description
CompileProgram ( ITree parseTree ) : ParsedProgram
CreateLexer ( string expression ) : SimpleLanguageLexer
ParseExpression ( SimpleLanguageLexer lexer ) : ITree

Method Details

Evaluate() public method

public Evaluate ( string expression ) : void
expression string
return void

Evaluator() public method

public Evaluator ( ) : Antlr.Runtime
return Antlr.Runtime

Evaluator() public method

public Evaluator ( Storage storage ) : Antlr.Runtime
storage Storage
return Antlr.Runtime

OnError() protected method

protected OnError ( string source, string message ) : void
source string
message string
return void