The R# expression syntax build result, the result of this model could be an error or resulted expression model object.
SyntaxResult
01 Syntax
SMRUCC.Rsharp.Language.Syntax.SyntaxParser.SyntaxResult
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| CreateError | 2 | create a syntax error |
| op_Like | 1 | check of the SyntaxResult.expression type |
| ToString | 1 | |
| op_Implicit | 1 |
03 Properties
| Name | Overloads | Summary |
|---|---|---|
| isException | 1 |
04 Fields
| Name | Overloads | Summary |
|---|---|---|
| expression | 2 | the successful parsed expression model. |
| stackTrace | 2 | the .NET stacktrace in R# interpreter |
| error | 1 |
05 Members
CreateError(
String, SyntaxBuilderOptions)Create syntax error on current script file code span
Parameters
| Name | Type | Description |
|---|---|---|
err_msg | String | - |
opts | SyntaxBuilderOptions | - |
create a syntax error
Parameters
| Name | Type | Description |
|---|---|---|
opts | SyntaxBuilderOptions | - |
err | Exception | - |
from | CodeSpan | The code span of line start where the syntax error occurs |
to | CodeSpan | the code span of line ends where the syntax error occurs |
op_Like(SyntaxResult,
Type)check of the SyntaxResult.expression type
Parameters
| Name | Type | Description |
|---|---|---|
syntax | SyntaxResult | - |
type | Type | - |
expression
the successful parsed expression model.
stackTrace
the .NET stacktrace in R# interpreter
error
expression
stackTrace
isException
ToString()
op_Implicit(Expression)