|
|
|
@ -1,4 +1,5 @@ |
|
|
|
using System.Collections; |
|
|
|
using System; |
|
|
|
|
|
|
|
using System.Collections; |
|
|
|
using System.Collections.Generic; |
|
|
|
using System.Collections.Generic; |
|
|
|
using System.Collections.Specialized; |
|
|
|
using System.Collections.Specialized; |
|
|
|
using System.Text; |
|
|
|
using System.Text; |
|
|
|
@ -261,11 +262,12 @@ ImportsStatement = |
|
|
|
. |
|
|
|
. |
|
|
|
|
|
|
|
|
|
|
|
AttributeBlock = |
|
|
|
AttributeBlock = |
|
|
|
"<" { ANY } ">" [ EOL ] |
|
|
|
"<" (. PushContext(Context.Attribute); .) { ANY } ">" (. PopContext(); .) [ EOL ] |
|
|
|
. |
|
|
|
. |
|
|
|
|
|
|
|
|
|
|
|
NamespaceMemberDeclaration = |
|
|
|
NamespaceMemberDeclaration = |
|
|
|
NamespaceDeclaration | TypeDeclaration |
|
|
|
NamespaceDeclaration | |
|
|
|
|
|
|
|
TypeDeclaration |
|
|
|
. |
|
|
|
. |
|
|
|
|
|
|
|
|
|
|
|
NamespaceDeclaration = |
|
|
|
NamespaceDeclaration = |
|
|
|
@ -286,20 +288,26 @@ TypeDeclaration = |
|
|
|
|
|
|
|
|
|
|
|
MemberDeclaration = |
|
|
|
MemberDeclaration = |
|
|
|
(. PushContext(Context.Member); .) |
|
|
|
(. PushContext(Context.Member); .) |
|
|
|
|
|
|
|
{ AttributeBlock } { MemberModifier } |
|
|
|
( |
|
|
|
( |
|
|
|
|
|
|
|
MemberVariableOrConstantDeclaration | |
|
|
|
SubOrFunctionDeclaration |
|
|
|
SubOrFunctionDeclaration |
|
|
|
) |
|
|
|
) |
|
|
|
(. PopContext(); .) |
|
|
|
(. PopContext(); .) |
|
|
|
. |
|
|
|
. |
|
|
|
|
|
|
|
|
|
|
|
SubOrFunctionDeclaration = |
|
|
|
SubOrFunctionDeclaration = |
|
|
|
{ AttributeBlock } { MemberModifier } ("Sub" | "Function") |
|
|
|
("Sub" | "Function") |
|
|
|
(. PushContext(Context.IdentifierExpected); .) ANY (. PopContext(); .) |
|
|
|
(. PushContext(Context.IdentifierExpected); .) ANY (. PopContext(); .) |
|
|
|
[ "(" [ ParameterList ] ")" ] [ "As" TypeName ] |
|
|
|
[ "(" [ ParameterList ] ")" ] [ "As" TypeName ] |
|
|
|
Block |
|
|
|
Block |
|
|
|
"End" ("Sub" | "Function") StatementTerminator |
|
|
|
"End" ("Sub" | "Function") StatementTerminator |
|
|
|
. |
|
|
|
. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
MemberVariableOrConstantDeclaration = |
|
|
|
|
|
|
|
[ "Const" ] Identifier [ "As" TypeName ] [ "=" Expression ] StatementTerminator |
|
|
|
|
|
|
|
. |
|
|
|
|
|
|
|
|
|
|
|
ParameterList = |
|
|
|
ParameterList = |
|
|
|
Parameter { "," Parameter } |
|
|
|
Parameter { "," Parameter } |
|
|
|
. |
|
|
|
. |
|
|
|
@ -443,7 +451,9 @@ MemberModifier = |
|
|
|
"NotOverridable" | |
|
|
|
"NotOverridable" | |
|
|
|
"Overrides" | |
|
|
|
"Overrides" | |
|
|
|
"Overloads" | |
|
|
|
"Overloads" | |
|
|
|
"Partial" |
|
|
|
"Partial" | |
|
|
|
|
|
|
|
"WithEvents" | |
|
|
|
|
|
|
|
"Dim" |
|
|
|
. |
|
|
|
. |
|
|
|
|
|
|
|
|
|
|
|
ParameterModifier = |
|
|
|
ParameterModifier = |
|
|
|
|