An expressin for create a new symbol inside the runtime environment
DeclareNewSymbol
01 Syntax
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| .ctor | 2 | create new symbol without initial value |
| GetSymbolName | 1 | get symbol name string |
| Evaluate | 1 | Push current variable into the target environment envir. |
| PushNames | 1 | |
| ToString | 1 |
03 Properties
| Name | Overloads | Summary |
|---|---|---|
| names | 1 | tuple names. (对于tuple语法,会存在多个变量) |
| hasInitializeExpression | 1 | true for if the DeclareNewSymbol.value expression is not nothing |
| getName | 1 | get name by index |
| type | 1 | get object value type for current new symbol |
| symbolSize | 1 | the size of the symbol names |
| isTuple | 1 | does current symbol declaration contains multiple symbol targets? |
| value | 1 | The symbol initial value.(初始值) |
| unit | 1 | the unit name of the symbol value if it is a vector |
| expressionName | 1 | |
| stackFrame | 1 |
04 Members
StackFrame)create new symbol with a specific initial value
| Name | Type | Description |
|---|---|---|
assign | ValueAssignExpression | - |
stack | StackFrame | - |
StackFrame)create new symbol without initial value
| Name | Type | Description |
|---|---|---|
symbol | SymbolReference | - |
stack | StackFrame | - |
get symbol name string
usually be the first element of the names array. For multiple names, a string json array text will be generates from this function.
Push current variable into the target environment **envir**.
| Name | Type | Description |
|---|---|---|
envir | Environment | - |
| Name | Type | Description |
|---|---|---|
names | String() | The variable names |
value | Object | .NET runtime object value. |
type | TypeCodes | - |
envir | Boolean | - |
用于初始化环境对象
tuple names. (对于tuple语法,会存在多个变量)
true for if the DeclareNewSymbol.value expression is not nothing
Int32)get name by index
| Name | Type | Description |
|---|---|---|
i | Int32 | - |
get object value type for current new symbol
the size of the symbol names
does current symbol declaration contains multiple symbol targets?
TRUE means contains multiple symbol target, it is a new tuple syntax; FALSE means just has one symbol target to create in the context.
The symbol initial value.(初始值)
the unit name of the symbol value if it is a vector