Generally expression parser codes
ParserCommon
01 Syntax
Microsoft.VisualBasic.Scripting.TokenIcer.ParserCommon
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| StartEscaping | 2 | 当前的token对象之中是否是转义的起始,即当前的token之中的最后一个符号是否是转移符escape? |
| GetCodeComment | 1 | 假若返回来的是空字符串,则说明不是注释行 |
| As | 1 | Dynamics casting the token value expression as target type object. |
| CType | 1 | Dynamics casting the token value expression as target type object. |
| TryCast | 1 | Try cast the token value to a .NET object based on the token type name. |
| As | 1 | |
| CType | 1 | |
| TryCast | 1 |
03 Members
StartEscaping(List(Of Char),
Char)当前的token对象之中是否是转义的起始,即当前的token之中的最后一个符号是否是转移符escape?
Parameters
| Name | Type | Description |
|---|---|---|
buffer | List(Of Char) | - |
escape | Char | - |
StartEscaping(CharBuffer,
Char)当前的token对象之中是否是转义的起始,即当前的token之中的最后一个符号是否是转义符escape?
Parameters
| Name | Type | Description |
|---|---|---|
buffer | CharBuffer | - |
escape | Char | - |
Returns
this function deal with the empty collection: returns false if the given buffer is empty
GetCodeComment(
String, String())假若返回来的是空字符串,则说明不是注释行
Parameters
| Name | Type | Description |
|---|---|---|
line | String | - |
prefix | String() | The prefix of the code comment character/string |
As``2(CodeToken(Of ``0))
Dynamics casting the token value expression as target type object.
Type Parameters
| Name | Description |
|---|---|
Tokens | |
T |
Parameters
| Name | Type | Description |
|---|---|---|
x | CodeToken(Of ``0) | - |
CType``1(CodeToken(Of ``0),
Type)Dynamics casting the token value expression as target type object.
Type Parameters
| Name | Description |
|---|---|
Tokens |
Parameters
| Name | Type | Description |
|---|---|---|
x | CodeToken(Of ``0) | - |
type | Type | - |
TryCast``1(CodeToken(Of ``0))
Try cast the token value to a .NET object based on the token type name.
Type Parameters
| Name | Description |
|---|---|
Tokens |
Parameters
| Name | Type | Description |
|---|---|---|
x | CodeToken(Of ``0) | - |
CType(CodeToken(Of Tokens),
Type)TryCast(CodeToken(Of Tokens))