~halega/+junk/sharpdevelop

« back to all changes in this revision

Viewing changes to src/Libraries/NRefactory/Project/Src/Lexer/CSharp/KeywordList.txt

  • Committer: sk
  • Date: 2011-09-10 05:17:57 UTC
  • Revision ID: halega@halega.com-20110910051757-qfouz1llya9m6boy
4.1.0.7915 Release Candidate 1

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.Parser.CSharp
 
9
$UpperCaseKeywords=False
 
10
 
 
11
# TERMINAL_CLASSES
 
12
EOF
 
13
Identifier
 
14
Literal
 
15
 
 
16
# SPECIAL_CHARACTERS
 
17
Assign = "="
 
18
Plus = "+"
 
19
Minus = "-"
 
20
Times = "*"
 
21
Div = "/"
 
22
Mod = "%"
 
23
                
 
24
Colon = ":"
 
25
DoubleColon = "::"
 
26
Semicolon = ";"
 
27
Question = "?"
 
28
DoubleQuestion = "??"
 
29
Comma = ","
 
30
Dot = "."
 
31
        
 
32
OpenCurlyBrace = "{"
 
33
CloseCurlyBrace = "}"
 
34
 
 
35
OpenSquareBracket = "["
 
36
CloseSquareBracket = "]"
 
37
 
 
38
OpenParenthesis = "("
 
39
CloseParenthesis = ")"
 
40
 
 
41
GreaterThan = ">"
 
42
LessThan = "<"
 
43
 
 
44
Not = "!"
 
45
LogicalAnd = "&&"
 
46
LogicalOr = "||"
 
47
 
 
48
BitwiseComplement = "~"
 
49
BitwiseAnd = "&"
 
50
BitwiseOr = "|"
 
51
Xor = "^"
 
52
 
 
53
Increment = "++"
 
54
Decrement = "--"
 
55
Equal = "=="
 
56
NotEqual = "!="
 
57
GreaterEqual = ">="
 
58
LessEqual = "<="
 
59
                
 
60
ShiftLeft = "<<"
 
61
#Removed because of generics
 
62
#ShiftRight = ">>"
 
63
                
 
64
PlusAssign = "+="
 
65
MinusAssign = "-="
 
66
TimesAssign = "*="
 
67
DivAssign = "/="
 
68
ModAssign = "%="
 
69
BitwiseAndAssign = "&="
 
70
BitwiseOrAssign = "|="
 
71
XorAssign = "^="
 
72
ShiftLeftAssign = "<<="
 
73
#Removed because of generics
 
74
#ShiftRightAssign = ">>="
 
75
Pointer = "->"
 
76
LambdaArrow = "=>"
 
77
 
 
78
# Keywordlist
 
79
"abstract"
 
80
"as"
 
81
"base"
 
82
"bool"
 
83
"break"
 
84
"byte"
 
85
"case"
 
86
"catch"
 
87
"char"
 
88
"checked"
 
89
"class"
 
90
"const"
 
91
"continue"
 
92
"decimal"
 
93
"default"
 
94
"delegate"
 
95
"do"
 
96
"double"
 
97
"else"
 
98
"enum"
 
99
"event"
 
100
"explicit"
 
101
"extern"
 
102
"false"
 
103
"finally"
 
104
"fixed"
 
105
"float"
 
106
"for"
 
107
"foreach"
 
108
"goto"
 
109
"if"
 
110
"implicit"
 
111
"in"
 
112
"int"
 
113
"interface"
 
114
"internal"
 
115
"is"
 
116
"lock"
 
117
"long"
 
118
"namespace"
 
119
"new"
 
120
"null"
 
121
"object"
 
122
"operator"
 
123
"out"
 
124
"override"
 
125
"params"
 
126
"private"
 
127
"protected"
 
128
"public"
 
129
"readonly"
 
130
"ref"
 
131
"return"
 
132
"sbyte"
 
133
"sealed"
 
134
"short"
 
135
"sizeof"
 
136
"stackalloc"
 
137
"static"
 
138
"string"
 
139
"struct"
 
140
"switch"
 
141
"this"
 
142
"throw"
 
143
"true"
 
144
"try"
 
145
"typeof"
 
146
"uint"
 
147
"ulong"
 
148
"unchecked"
 
149
"unsafe"
 
150
"ushort"
 
151
"using"
 
152
"virtual"
 
153
"void"
 
154
"volatile"
 
155
"while"
 
156
 
 
157
# Context dependent keywords.
 
158
"partial"
 
159
"where"
 
160
"get"
 
161
"set"
 
162
"add"
 
163
"remove"
 
164
"yield"
 
165
"select"
 
166
"group"
 
167
"by"
 
168
"into"
 
169
"from"
 
170
"ascending"
 
171
"descending"
 
172
"orderby"
 
173
"let"
 
174
"join"
 
175
"on"
 
176
"equals"
 
177
 
 
178
#Sets
 
179
 
 
180
# When changing IdentifierTokens, ensure you also change the "Identifier" production in cs.ATG
 
181
IdentifierTokens(Identifier, "partial", "where", "get", "set", "add", "remove", "yield", "select", "group", "by", "into", "from", "ascending", "descending", "orderby", "let", "join", "on", "equals")
 
182
 
 
183
OverloadableUnaryOp("-", "!", "~", "++", "--", "true", "false")
 
184
OverloadableBinaryOp("+", "-", "*", "/", "%", "&", "|", "^", "<<", "==", "!=", ">", "<", ">=", "<=")
 
185
 
 
186
TypeKW("char", "bool", "object", "string", "sbyte", "byte", "short", "ushort", "int", "uint", "long", "ulong", "float", "double", "decimal")
 
187
UnaryHead("+", "-", "!", "~", "*", "++", "--", "&")
 
188
AssnStartOp("+", "-", "!", "~", "*")
 
189
CastFollower(@SimpleTypeName, Literal, "(", "~", "!", @ExpressionStart)
 
190
AssgnOps("=", "+=", "-=", "*=", "/=", "%=", "&=", "|=", "<<=")
 
191
UnaryOp("+", "-", "!", "~", "*", "++", "--", "&")
 
192
TypeDeclarationKW("class", "interface", "struct", "enum", "delegate")
 
193
# for �7.5.4.2 "Grammar ambiguities" disambiguation for F(G<A,B>(7))
 
194
GenericFollower("(", ")", "]", "}", ":", ";", Comma, ".", "?", "==", "!=")
 
195
 
 
196
ValidInsideTypeName(@IdentifierTokens, @TypeKW, "<", ">", ".", "?", "[", Comma, "]", "*", "::")
 
197
 
 
198
# Keywords for keyword-code-completion
 
199
KCCClassModifiers("abstract", "sealed", "static", "unsafe", "partial")
 
200
KCCTypeDeclarationStart("public", "internal", @TypeDeclarationKW, @KCCClassModifiers)
 
201
KCCMemberVisibilityModifiers("protected", "private", "public", "internal")
 
202
SimpleTypeName(@TypeKW, @IdentifierTokens, "void")
 
203
GlobalLevel("namespace", "using", "extern", @KCCTypeDeclarationStart)
 
204
ExpressionStart("base", "delegate", "false", "new", "null", "sizeof", "this", "true", "typeof", "checked", "unchecked", "from", "default")
 
205
ExpressionContent("as", "is", "out", "ref", "in")
 
206
# interfaces cannot have inner classes etc., the only keyword (expect for type names) that may appear in them is "event"
 
207
InterfaceLevel("event")
 
208
TypeLevel(@KCCTypeDeclarationStart, @KCCMemberVisibilityModifiers, "const", "event", "explicit", "extern", "fixed", "implicit", "new", "operator", "override", "readonly", "virtual", "volatile")
 
209
StatementStart(@ExpressionStart, @ExpressionContent, "break", "case", "catch", "checked", "unchecked", "const", "continue", "default", "do", "else", "finally", "fixed", "for", "foreach", "goto", "if", "lock", "return", "stackalloc", "switch", "throw", "try", "unsafe", "using", "while", "yield")
 
210
QueryExpressionClauseStart("from", "let", "where", "join", "orderby", "group", "select")
 
211
InPropertyDeclaration(@KCCMemberVisibilityModifiers, "get", "set")
 
212
InEventDeclaration("add", "remove")
 
213
 
 
214
# unused: where
 
215
# "by", "into", "ascending", "descending", "on", "equals"