C# Class SimpleC.Parsing.ExpressionParser

Parser for SimpleC expressions. Used internally by the parser.
Uses the shunting-yard algorithm by Dijkstra. Good explanation here: http://wcipeg.com/wiki/Shunting_yard_algorithm
显示文件 Open project: nrother/simple-c

Public Methods

Method Description
Parse ( IEnumerable tokens ) : ExpressionNode

Parses the given tokens to an AST.

Private Methods

Method Description
PopOperator ( ) : void

Method Details

Parse() public method

Parses the given tokens to an AST.
public Parse ( IEnumerable tokens ) : ExpressionNode
tokens IEnumerable
return SimpleC.Types.AstNodes.ExpressionNode