C# Class OpenRA.Support.Evaluator

Show file Open project: pchote/OpenRA

Public Methods

Method Description
Evaluate ( string expr ) : int
Evaluate ( string expr, int>.Dictionary syms ) : int

Private Methods

Method Description
ApplyBinop ( Stack s, Func f ) : void
ToPostfix ( IEnumerable toks, int>.Dictionary syms ) : IEnumerable
Tokens ( string expr, string ops ) : IEnumerable

Method Details

Evaluate() public static method

public static Evaluate ( string expr ) : int
expr string
return int

Evaluate() public static method

public static Evaluate ( string expr, int>.Dictionary syms ) : int
expr string
syms int>.Dictionary
return int