~ubuntu-branches/ubuntu/trusty/monodevelop/trusty-proposed

« back to all changes in this revision

Viewing changes to external/nrefactory/ICSharpCode.NRefactory.VB/Lexer/KeywordList.txt

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-05-12 09:46:03 UTC
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20130512094603-mad323bzcxvmcam0
Tags: upstream-4.0.5+dfsg
ImportĀ upstreamĀ versionĀ 4.0.5+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# this list is used for autogeneration of:
 
2
# - Keywords.cs
 
3
# - Tokens.cs
 
4
# - ATGTokensSection.txt - the TOKENS section of the ATG file
 
5
 
 
6
# use BuildKeywords to generate the different lists.
 
7
 
 
8
$Namespace=ICSharpCode.NRefactory.VB.Parser
 
9
$UpperCaseKeywords=True
 
10
 
 
11
# TERMINAL_CLASSES
 
12
EOF
 
13
EOL
 
14
Identifier
 
15
LiteralString
 
16
LiteralCharacter
 
17
LiteralInteger
 
18
LiteralDouble
 
19
LiteralSingle
 
20
LiteralDecimal
 
21
LiteralDate
 
22
 
 
23
# XML_TERMINALS
 
24
XmlOpenTag
 
25
XmlCloseTag
 
26
XmlStartInlineVB
 
27
XmlEndInlineVB
 
28
XmlCloseTagEmptyElement
 
29
XmlOpenEndTag
 
30
XmlContent
 
31
XmlComment
 
32
XmlCData
 
33
XmlProcessingInstruction
 
34
 
 
35
# SPECIAL_CHARACTERS
 
36
Assign = "="
 
37
Colon =":"
 
38
Comma = ","
 
39
ConcatString = "&"
 
40
Div ="/"
 
41
DivInteger = "\\"
 
42
Dot = "."
 
43
TripleDot = "..."
 
44
DotAt = ".@"
 
45
# Exclamation mark = Dictionary access operator (not always a token, sometimes it's a type character)
 
46
ExclamationMark = "!"
 
47
Minus = "-"
 
48
Plus = "+"
 
49
Power = "^"
 
50
QuestionMark = "?"
 
51
Times = "*"
 
52
 
 
53
OpenCurlyBrace = "{"
 
54
CloseCurlyBrace = "}"
 
55
        
 
56
OpenParenthesis = "("
 
57
CloseParenthesis = ")"
 
58
        
 
59
GreaterThan = ">"
 
60
LessThan = "<"
 
61
        
 
62
NotEqual = "<>"
 
63
GreaterEqual = ">="
 
64
LessEqual = "<="
 
65
        
 
66
ShiftLeft = "<<"
 
67
ShiftRight = ">>"
 
68
        
 
69
PlusAssign = "+="
 
70
PowerAssign = "^="
 
71
MinusAssign = "-="
 
72
TimesAssign = "*="
 
73
DivAssign = "/="
 
74
DivIntegerAssign = "\\="
 
75
ShiftLeftAssign = "<<="
 
76
ShiftRightAssign = ">>="
 
77
ConcatStringAssign = "&="
 
78
ColonAssign = ":="
 
79
 
 
80
# keywords according to the spec:
 
81
# Keywordlist
 
82
"AddHandler"
 
83
"AddressOf"
 
84
"Aggregate"
 
85
"Alias"
 
86
"And"
 
87
"AndAlso"
 
88
"Ansi"
 
89
"As"
 
90
"Ascending"
 
91
"Assembly"
 
92
"Auto"
 
93
"Binary"
 
94
"Boolean"
 
95
"ByRef"
 
96
"By"
 
97
"Byte"
 
98
"ByVal"
 
99
"Call"
 
100
"Case"
 
101
"Catch"
 
102
"CBool"
 
103
"CByte"
 
104
"CChar"
 
105
"CDate"
 
106
"CDbl"
 
107
"CDec"
 
108
"Char"
 
109
"CInt"
 
110
"Class"
 
111
"CLng"
 
112
"CObj"
 
113
"Compare"
 
114
"Const"
 
115
"Continue"
 
116
"CSByte"
 
117
"CShort"
 
118
"CSng"
 
119
"CStr"
 
120
"CType"
 
121
"CUInt"
 
122
"CULng"
 
123
"CUShort"
 
124
"Custom"
 
125
"Date"
 
126
"Decimal"
 
127
"Declare"
 
128
"Default"
 
129
"Delegate"
 
130
"Descending"
 
131
"Dim"
 
132
"DirectCast"
 
133
"Distinct"
 
134
"Do"
 
135
"Double"
 
136
"Each"
 
137
"Else"
 
138
"ElseIf"
 
139
"End"
 
140
"EndIf"
 
141
"Enum"
 
142
"Equals"
 
143
"Erase"
 
144
"Error"
 
145
"Event"
 
146
"Exit"
 
147
"Explicit"
 
148
"False"
 
149
"Finally"
 
150
"For"
 
151
"Friend"
 
152
"From"
 
153
"Function"
 
154
"Get"
 
155
"GetType"
 
156
"Global"
 
157
"GoSub"
 
158
"GoTo"
 
159
"Group"
 
160
"Handles"
 
161
"If"
 
162
"Implements"
 
163
"Imports"
 
164
"In"
 
165
"Infer"
 
166
"Inherits"
 
167
"Integer"
 
168
"Interface"
 
169
"Into"
 
170
"Is"
 
171
"IsNot"
 
172
# Note: IsTrue and IsFalse are 'NOT' keywords they're only valid in Operator declarations (like get/set/value are no C# 'keywords')
 
173
"Join"
 
174
"Key"
 
175
"Let"
 
176
"Lib"
 
177
"Like"
 
178
"Long"
 
179
"Loop"
 
180
"Me"
 
181
"Mod"
 
182
"Module"
 
183
"MustInherit"
 
184
"MustOverride"
 
185
"MyBase"
 
186
"MyClass"
 
187
"Namespace"
 
188
"Narrowing"
 
189
"New"
 
190
"Next"
 
191
"Not"
 
192
"Nothing"
 
193
"NotInheritable"
 
194
"NotOverridable"
 
195
"Object"
 
196
"Of"
 
197
"Off"
 
198
"On"
 
199
"Operator"
 
200
"Option"
 
201
"Optional"
 
202
"Or"
 
203
"Order"
 
204
"OrElse"
 
205
"Out"
 
206
"Overloads"
 
207
"Overridable"
 
208
"Overrides"
 
209
"ParamArray"
 
210
"Partial"
 
211
"Preserve"
 
212
"Private"
 
213
"Property"
 
214
"Protected"
 
215
"Public"
 
216
"RaiseEvent"
 
217
"ReadOnly"
 
218
"ReDim"
 
219
# has to be in the keyword list for the output formatter
 
220
"Rem"
 
221
"RemoveHandler"
 
222
"Resume"
 
223
"Return"
 
224
"SByte"
 
225
"Select"
 
226
"Set"
 
227
"Shadows"
 
228
"Shared"
 
229
"Short"
 
230
"Single"
 
231
"Skip"
 
232
"Static"
 
233
"Step"
 
234
"Stop"
 
235
"Strict"
 
236
"String"
 
237
"Structure"
 
238
"Sub"
 
239
"SyncLock"
 
240
"Take"
 
241
"Text"
 
242
"Then"
 
243
"Throw"
 
244
"To"
 
245
"True"
 
246
"Try"
 
247
"TryCast"
 
248
"TypeOf"
 
249
"UInteger"
 
250
"ULong"
 
251
"Unicode"
 
252
"Until"
 
253
"UShort"
 
254
"Using"
 
255
"Variant"
 
256
"Wend"
 
257
"When"
 
258
"Where"
 
259
"While"
 
260
"Widening"
 
261
"With"
 
262
"WithEvents"
 
263
"WriteOnly"
 
264
"Xor"
 
265
 
 
266
#XML specific keywords
 
267
"GetXmlNamespace"
 
268
 
 
269
#Sets
 
270
Null("Nothing")
 
271
BlockSucc("Case", "Catch", "Else", "ElseIf", "End", "Finally", "Loop", "Next")
 
272
GlobalLevel("Namespace", "Module", "Class", "Structure", "Imports", "Option")
 
273
TypeLevel("Sub", "Function", "Property")
 
274
 
 
275
# List of keywords that are valid identifiers, must be the same as the "Identifier" production in VBNET.ATG
 
276
IdentifierTokens("Text", "Binary", "Compare", "Assembly", "Ansi", "Auto", "Preserve", "Unicode", "Until", "Off", "Out", "Key", "Explicit", "Infer", "From", "Join", "Equals", "Distinct", "Where", "Take", "Skip", "Order", "By", "Ascending", "Descending", "Group", "Into", "Aggregate")
 
277
ExpressionStart("Me", "MyBase", "MyClass", @BooleanExpressions, @OperatorsAtStart, "New", @Null, "AddressOf", "GetType", "TypeOf", "GetXmlNamespace", "Global", @TypeKW, @LambdaStart, @CastExpressions)
 
278
StatementStart(@Null, @ExpressionStart, "Dim", "Const", "Static", "For", "While", "Do", "Select")
 
279
SimpleTypeName(@TypeKW, @IdentifierTokens)
 
280
CastExpressions("DirectCast", "TryCast", "CType", "CBool", "CByte", "CChar", "CDate", "CDec", "CDbl", "CInt", "CLng", "CObj", "CSByte", "CShort", "CSng", "CStr", "CUInt", "CULng", "CUShort")
 
281
BooleanExpressions("True", "False")
 
282
LambdaStart("Sub", "Function")
 
283
OperatorsAtStart("Not", "From", "Aggregate")
 
284
TypeKW("Boolean", "Date", "Char", "String", "Decimal", "Byte", "Short", "Integer", "Long", "Single", "Double", "UInteger", "ULong", "UShort", "SByte")
 
 
b'\\ No newline at end of file'