Property | Type | Description |
---|
Method | Description | |
---|---|---|
Arithmetic ( ) : System |
Initialize a new instance of the Arithmetic class.
|
|
Arithmetic ( System.Language language ) : System |
Initialize a new instance of the Arithmetic class.
|
|
Arithmetic ( string input ) : System |
Initialize a new instance of the Arithmetic class.
|
|
Arithmetic ( string input, System.Language language ) : System |
Initialize a new instance of the Arithmetic class.
|
|
Evaluate ( ) : |
Evaluate and return result.
|
|
Evaluate ( object thisObject ) : |
Evaluate and return result.
|
|
Parse ( string input ) : void |
Parse the provided input string.
|
|
ToString ( ) : string |
Human readable version of the parsed input.
|
Method | Description | |
---|---|---|
ParseExpression ( ) : EvalNode |
Parse the 'expression' rule. expression ::= term expression2 |
|
ParseExpression2 ( ) : EvalNode |
Parse the 'expression2' rule. expression2 ::= '+' term expression2 | '-' term expression2 | {empty} |
|
ParseFactor ( ) : EvalNode |
Parse the 'factor' rule. factor ::= '+' factor | '-' factor | primary |
|
ParsePrimary ( ) : EvalNode |
Parse the 'primary' rule. primary ::= integer-literal | real-literal '(' expression ')' |
|
ParseTerm ( ) : EvalNode |
Parse the 'term' rule. term ::= factor term2 |
|
ParseTerm2 ( ) : EvalNode |
Process the term2 rule. term2 ::= '*' factor term2 | '/' factor term2 | {empty} |
public Arithmetic ( System.Language language ) : System | ||
language | System.Language | Language used for parsing. |
return | System |
public Arithmetic ( string input ) : System | ||
input | string | Input string to parse. |
return | System |
public Arithmetic ( string input, System.Language language ) : System | ||
input | string | Input string to parse. |
language | System.Language | Language used for parsing. |
return | System |
public Evaluate ( object thisObject ) : |
||
thisObject | object | Reference to object that is exposed as 'this'. |
return |