BinaryExpressionTree
01 Syntax
SMRUCC.Rsharp.Language.Syntax.SyntaxParser.BinaryExpressionTree
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| joinNegatives | 1 | |
| ParseInvokeInternal | 1 | |
| ProcessOperators | 1 | |
| CreateBinary | 1 | |
| ParseBinaryExpression | 2 | |
| CreateBinaryExpression | 1 |
03 Fields
| Name | Overloads | Summary |
|---|---|---|
| operatorPriority | 1 | the math operators |
04 Members
joinNegatives(
List(Of Token()), List(Of Variant(Of SyntaxResult, String)), List(Of String), SyntaxBuilderOptions)Parameters
| Name | Type | Description |
|---|---|---|
tokenBlocks | List(Of Token()) | - |
buf | List(Of Variant(Of SyntaxResult, String)) | - |
oplist | List(Of String) | - |
opts | SyntaxBuilderOptions | - |
Returns
returns error message
Parameters
| Name | Type | Description |
|---|---|---|
list | Token() | always wrap with brackets () |
buf | List(Of Variant(Of SyntaxResult, String)) | - |
opts | SyntaxBuilderOptions | - |
ProcessOperators(
List(Of Variant(Of SyntaxResult, String)), List(Of String), String(), Func(Of String, String, Boolean), SyntaxBuilderOptions)Remarks
the expression change is generated via the buf parameter
Parameters
| Name | Type | Description |
|---|---|---|
buf | List(Of Variant(Of SyntaxResult, String)) | a token list for process the operators, this list input value may be changed after the operator scanning in this function |
oplist | List(Of String) | - |
operators | String() | A set of the operators |
test | Func(Of String, String, Boolean) | test(op, o) |
Returns
this function returns the syntax error if some syntax error has been found, otherwise returns nothing if has no error!
Parameters
| Name | Type | Description |
|---|---|---|
a | Expression | the left |
b | Expression | the right |
opToken | String | the operator |
opts | SyntaxBuilderOptions | - |
operatorPriority
the math operators
ParseBinaryExpression(
List(Of Token()), SyntaxBuilderOptions)ParseBinaryExpression(
List(Of Variant(Of SyntaxResult, String)), SyntaxBuilderOptions, List(Of String), Int32)CreateBinaryExpression(
IEnumerable(Of Variant(Of Expression, String)), SyntaxBuilderOptions)