C# Class DartSharp.Compiler.Parser

显示文件 Open project: ajlopez/DartSharp Class Usage Examples

Public Methods

Method Description
ParseCommand ( ) : ICommand
ParseCommands ( ) : IList
ParseExpression ( ) : IExpression
Parser ( Lexer lexer ) : System
Parser ( string text ) : System

Private Methods

Method Description
IsTypeExpression ( IExpression expression ) : bool
NextToken ( ) : Token
ParseArgumentNames ( ) : IList
ParseBinaryExpressionLevelAdd ( ) : IExpression
ParseBinaryExpressionLevelMultiply ( ) : IExpression
ParseDefineClassCommand ( ) : ICommand
ParseDefineFunction ( string name ) : DefineFunctionCommand
ParseDefineVariableCommand ( IExpression typeexpression, string name ) : ICommand
ParseDotExpression ( ) : IExpression
ParseExpressionList ( string upto ) : IEnumerable
ParseIfCommand ( ) : ICommand
ParseName ( ) : string
ParseSimpleExpression ( ) : IExpression
ParseStringInterpolation ( string text ) : IExpression
ParseToken ( string value, TokenType type ) : void
ParseWhileCommand ( ) : ICommand
PushToken ( Token token ) : void
TryParseToken ( string value, TokenType type ) : bool
TryPeekToken ( string value, TokenType type ) : bool

Method Details

ParseCommand() public method

public ParseCommand ( ) : ICommand
return ICommand

ParseCommands() public method

public ParseCommands ( ) : IList
return IList

ParseExpression() public method

public ParseExpression ( ) : IExpression
return IExpression

Parser() public method

public Parser ( Lexer lexer ) : System
lexer Lexer
return System

Parser() public method

public Parser ( string text ) : System
text string
return System