author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Fri, 11 Jan 2013 13:40:41 +0000 | |
changeset 3 | 46c322c66a29 |
parent 2 | 8fedb5e096fc |
child 4 | 5ef74750c3bc |
permissions | -rw-r--r-- |
1
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1 |
"{ Package: 'jv:dart/compiler' }" |
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
2 |
|
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
3 |
"{ NameSpace: Dart }" |
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
4 |
|
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
5 |
PPCompositeParser subclass:#Parser |
2
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
6 |
instanceVariableNames:'additiveExpression additiveOperator argumentList arguments |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
7 |
assignableExpression assignableSelector assignmentOperator |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
8 |
bitwiseAndExpression bitwiseOperator bitwiseOrExpression |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
9 |
bitwiseXorExpression block catchPart classDefinition |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
10 |
classMemberDefinition compilationUnit compoundLiteral |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
11 |
conditionalExpression constInitializedIdentifier |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
12 |
constInitializedVariableDeclaration |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
13 |
constantConstructorDeclaration constantExpression |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
14 |
constructorDeclaration declaration declaredIdentifier defaultCase |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
15 |
defaultFormalParameter directive equalityExpression |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
16 |
equalityOperator expression expressionInParentheses |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
17 |
expressionList factoryConstructorDeclaration factorySpecification |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
18 |
fieldFormalParameter fieldInitializer finalVarOrType finallyPart |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
19 |
forInitializerStatement forLoopParts formalParameterList |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
20 |
functionBody functionBodyOrNative functionDeclaration |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
21 |
functionExpression functionExpressionBody functionNative |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
22 |
functionPrefix functionTypeAlias getOrSet identifier |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
23 |
importReference importReferences incrementOperator |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
24 |
initializedIdentifier initializedIdentifierList |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
25 |
initializedVariableDeclaration initializers interfaceDefinition |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
26 |
interfaceMemberDefinition interfaces isOperator |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
27 |
iterationStatement label libraryBody libraryDefinition |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
28 |
libraryImport librarySource libraryUnit listLiteral literal |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
29 |
logicalAndExpression logicalOrExpression mapLiteral |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
30 |
mapLiteralEntry methodDeclaration multiplicativeExpression |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
31 |
multiplicativeOperator namedArgument namedConstructorDeclaration |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
32 |
namedFormalParameters negateOperator nonLabelledStatement |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
33 |
normalFormalParameter normalFormalParameterTail postfixExpression |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
34 |
postfixOperator prefixOperator primary primaryFE primaryNoFE |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
35 |
qualified redirection relationalExpression relationalOperator |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
36 |
returnType selectionStatement selector shiftExpression |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
37 |
shiftOperator simpleFormalParameter sourceUrls |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
38 |
specialSignatureDefinition statement statements |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
39 |
staticFinalDeclaration staticFinalDeclarationList |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
40 |
superCallOrFieldInitializer superclass superinterfaces switchCase |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
41 |
topLevelDefinition tryStatement type typeArguments typeList |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
42 |
typeParameter typeParameters unaryExpression |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
43 |
userDefinableOperator variableDeclaration' |
3 | 44 |
classVariableNames:'Debugging' |
1
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
45 |
poolDictionaries:'' |
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
46 |
category:'Languages-Dart-Parser' |
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
47 |
! |
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
48 |
|
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
49 |
PPParser subclass:#TokenParser |
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
50 |
instanceVariableNames:'tokenType' |
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
51 |
classVariableNames:'' |
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
52 |
poolDictionaries:'' |
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
53 |
privateIn:Parser |
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
54 |
! |
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
55 |
|
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
56 |
|
2
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
57 |
!Parser methodsFor:'grammar'! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
58 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
59 |
additiveExpression |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
60 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
61 |
^ (multiplicativeExpression , ((additiveOperator , multiplicativeExpression) star)) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
62 |
/ ((TokenParser for: #super) , ((additiveOperator , multiplicativeExpression) plus)) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
63 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
64 |
"Modified: / 11-01-2013 / 09:59:56 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
65 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
66 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
67 |
additiveOperator |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
68 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
69 |
^ ('+' asParser) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
70 |
/ ('-' asParser) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
71 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
72 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
73 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
74 |
argumentList |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
75 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
76 |
^ (namedArgument , (((',' asParser) , namedArgument) star)) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
77 |
/ (expressionList , (((',' asParser) , namedArgument) star)) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
78 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
79 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
80 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
81 |
arguments |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
82 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
83 |
^('(' asParser) , (argumentList optional) , (')' asParser) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
84 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
85 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
86 |
assignableExpression |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
87 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
88 |
^ (primary , (((arguments star) , assignableSelector) plus)) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
89 |
/ ((TokenParser for: #super) , assignableSelector) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
90 |
/ identifier |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
91 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
92 |
"Modified: / 11-01-2013 / 10:00:12 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
93 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
94 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
95 |
assignableSelector |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
96 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
97 |
^ (('[' asParser) , constantExpression , (']' asParser)) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
98 |
/ (('.' asParser) , identifier) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
99 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
100 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
101 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
102 |
assignmentOperator |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
103 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
104 |
^ ('=' asParser) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
105 |
/ ('*=' asParser) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
106 |
/ ('/=' asParser) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
107 |
/ ('~/=' asParser) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
108 |
/ ('%=' asParser) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
109 |
/ ('+=' asParser) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
110 |
/ ('-=' asParser) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
111 |
/ ('<<=' asParser) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
112 |
/ (('>' asParser) , ('>' asParser) , ('>' asParser) , ('=' asParser)) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
113 |
/ (('>' asParser) , ('>' asParser) , ('=' asParser)) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
114 |
/ ('&=' asParser) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
115 |
/ ('^=' asParser) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
116 |
/ ('|=' asParser) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
117 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
118 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
119 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
120 |
bitwiseAndExpression |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
121 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
122 |
^ (equalityExpression , ((('&' asParser) , equalityExpression) star)) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
123 |
/ ((TokenParser for: #super) , ((('&' asParser) , equalityExpression) plus)) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
124 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
125 |
"Modified: / 11-01-2013 / 10:00:21 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
126 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
127 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
128 |
bitwiseOperator |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
129 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
130 |
^ ('&' asParser) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
131 |
/ ('^' asParser) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
132 |
/ ('|' asParser) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
133 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
134 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
135 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
136 |
bitwiseOrExpression |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
137 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
138 |
^ (bitwiseXorExpression , ((('|' asParser) , bitwiseXorExpression) star)) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
139 |
/ ((TokenParser for:#super) , ((('|' asParser) , bitwiseXorExpression) plus)) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
140 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
141 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
142 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
143 |
bitwiseXorExpression |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
144 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
145 |
^ (bitwiseAndExpression , ((('^' asParser) , bitwiseAndExpression) star)) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
146 |
/ ((TokenParser for:#super) , ((('^' asParser) , bitwiseAndExpression) plus)) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
147 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
148 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
149 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
150 |
block |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
151 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
152 |
^('{' asParser) , statements , ('}' asParser) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
153 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
154 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
155 |
catchPart |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
156 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
157 |
^(TokenParser for:#catch) , ('(' asParser) , declaredIdentifier , (((',' asParser) , declaredIdentifier) optional) , (')' asParser) , block |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
158 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
159 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
160 |
classDefinition |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
161 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
162 |
^ ((TokenParser for:#class) , identifier , (typeParameters optional) , (superclass optional) , (interfaces optional) , ('{' asParser) , (classMemberDefinition star) , ('}' asParser)) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
163 |
/ ((TokenParser for:#class) , identifier , (typeParameters optional) , (interfaces optional) , (TokenParser for:#native) , (TokenParser for:#string) , ('{' asParser) , (classMemberDefinition star) , ('}' asParser)) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
164 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
165 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
166 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
167 |
classMemberDefinition |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
168 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
169 |
^ (declaration , (';' asParser)) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
170 |
/ (constructorDeclaration , (';' asParser)) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
171 |
/ (methodDeclaration , functionBodyOrNative) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
172 |
/ ((TokenParser for:#const) , factoryConstructorDeclaration , functionNative) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
173 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
174 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
175 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
176 |
compilationUnit |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
177 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
178 |
^( ((TokenParser for: #'#!!') optional) , (directive star) , (topLevelDefinition star) ) end |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
179 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
180 |
"Modified: / 11-01-2013 / 10:02:29 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
181 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
182 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
183 |
compoundLiteral |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
184 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
185 |
^ listLiteral |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
186 |
/ mapLiteral |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
187 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
188 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
189 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
190 |
conditionalExpression |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
191 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
192 |
^logicalOrExpression , ((('?' asParser) , constantExpression , (':' asParser) , constantExpression) optional) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
193 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
194 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
195 |
constInitializedIdentifier |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
196 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
197 |
^identifier , ((('=' asParser) , constantExpression) optional) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
198 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
199 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
200 |
constInitializedVariableDeclaration |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
201 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
202 |
^declaredIdentifier , ((('=' asParser) , constantExpression) optional) , (((',' asParser) , constInitializedIdentifier) star) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
203 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
204 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
205 |
constantConstructorDeclaration |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
206 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
207 |
^(TokenParser for:#const) , qualified , formalParameterList |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
208 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
209 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
210 |
constantExpression |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
211 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
212 |
^ (assignableExpression , assignmentOperator , constantExpression) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
213 |
/ conditionalExpression |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
214 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
215 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
216 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
217 |
constructorDeclaration |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
218 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
219 |
^ (identifier , formalParameterList , ((redirection / initializers ) optional)) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
220 |
/ (namedConstructorDeclaration , ((redirection / initializers ) optional)) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
221 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
222 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
223 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
224 |
declaration |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
225 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
226 |
^ (constantConstructorDeclaration , ((redirection / initializers ) optional)) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
227 |
/ (functionDeclaration , redirection) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
228 |
/ (namedConstructorDeclaration , redirection) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
229 |
/ ((TokenParser for:#abstract) , specialSignatureDefinition) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
230 |
/ ((TokenParser for:#abstract) , functionDeclaration) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
231 |
/ ((TokenParser for:#static) , (TokenParser for:#final) , (type optional) , staticFinalDeclarationList) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
232 |
/ (((TokenParser for:#static) optional) , constInitializedVariableDeclaration) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
233 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
234 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
235 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
236 |
declaredIdentifier |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
237 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
238 |
^ ((TokenParser for:#final) , (type optional) , identifier) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
239 |
/ ((TokenParser for:#var) , identifier) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
240 |
/ (type , identifier) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
241 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
242 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
243 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
244 |
defaultCase |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
245 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
246 |
^(label optional) , (((TokenParser for:#case) , constantExpression , (':' asParser)) star) , (TokenParser for:#default) , (':' asParser) , statements |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
247 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
248 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
249 |
defaultFormalParameter |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
250 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
251 |
^normalFormalParameter , ((('=' asParser) , constantExpression) optional) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
252 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
253 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
254 |
directive |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
255 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
256 |
^('#' asParser) , identifier , arguments , (';' asParser) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
257 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
258 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
259 |
equalityExpression |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
260 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
261 |
^ (relationalExpression , ((equalityOperator , relationalExpression) optional)) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
262 |
/ ((TokenParser for:#super) , equalityOperator , relationalExpression) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
263 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
264 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
265 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
266 |
equalityOperator |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
267 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
268 |
^ ('==' asParser) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
269 |
/ ('!!=' asParser) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
270 |
/ ('===' asParser) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
271 |
/ ('!!==' asParser) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
272 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
273 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
274 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
275 |
expressionInParentheses |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
276 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
277 |
^('(' asParser) , constantExpression , (')' asParser) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
278 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
279 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
280 |
expressionList |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
281 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
282 |
^constantExpression , (((',' asParser) , constantExpression) star) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
283 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
284 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
285 |
factoryConstructorDeclaration |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
286 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
287 |
^(TokenParser for:#factory) , qualified , (typeParameters optional) , ((('.' asParser) , identifier) optional) , formalParameterList |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
288 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
289 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
290 |
factorySpecification |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
291 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
292 |
^(TokenParser for:#factory) , type |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
293 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
294 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
295 |
fieldFormalParameter |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
296 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
297 |
^(finalVarOrType optional) , (TokenParser for:#this) , ('.' asParser) , identifier |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
298 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
299 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
300 |
fieldInitializer |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
301 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
302 |
^(((TokenParser for:#this) , ('.' asParser)) optional) , identifier , ('=' asParser) , conditionalExpression |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
303 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
304 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
305 |
finalVarOrType |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
306 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
307 |
^ ((TokenParser for:#final) , (type optional)) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
308 |
/ (TokenParser for:#var) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
309 |
/ type |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
310 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
311 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
312 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
313 |
finallyPart |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
314 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
315 |
^(TokenParser for:#finally) , block |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
316 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
317 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
318 |
forInitializerStatement |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
319 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
320 |
^ (initializedVariableDeclaration , (';' asParser)) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
321 |
/ ((constantExpression optional) , (';' asParser)) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
322 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
323 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
324 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
325 |
forLoopParts |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
326 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
327 |
^ (forInitializerStatement , (constantExpression optional) , (';' asParser) , (expressionList optional)) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
328 |
/ (declaredIdentifier , (TokenParser for:#in) , constantExpression) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
329 |
/ (identifier , (TokenParser for:#in) , constantExpression) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
330 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
331 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
332 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
333 |
formalParameterList |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
334 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
335 |
^ (('(' asParser) , (namedFormalParameters optional) , (')' asParser)) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
336 |
/ (('(' asParser) , normalFormalParameter , (normalFormalParameterTail optional) , (')' asParser)) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
337 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
338 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
339 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
340 |
functionBody |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
341 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
342 |
^ (('=>' asParser) , constantExpression , (';' asParser)) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
343 |
/ block |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
344 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
345 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
346 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
347 |
functionBodyOrNative |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
348 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
349 |
^ ((TokenParser for:#native) , functionBody) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
350 |
/ functionNative |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
351 |
/ functionBody |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
352 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
353 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
354 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
355 |
functionDeclaration |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
356 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
357 |
^(returnType optional) , identifier , formalParameterList |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
358 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
359 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
360 |
functionExpression |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
361 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
362 |
^(((returnType optional) , identifier) optional) , formalParameterList , functionExpressionBody |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
363 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
364 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
365 |
functionExpressionBody |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
366 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
367 |
^ (('=>' asParser) , constantExpression) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
368 |
/ block |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
369 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
370 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
371 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
372 |
functionNative |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
373 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
374 |
^(TokenParser for:#native) , ((TokenParser for:#string) optional) , (';' asParser) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
375 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
376 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
377 |
functionPrefix |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
378 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
379 |
^(returnType optional) , identifier |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
380 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
381 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
382 |
functionTypeAlias |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
383 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
384 |
^(TokenParser for:#typedef) , functionPrefix , (typeParameters optional) , formalParameterList , (';' asParser) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
385 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
386 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
387 |
getOrSet |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
388 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
389 |
^ (TokenParser for:#get) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
390 |
/ (TokenParser for:#set) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
391 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
392 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
393 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
394 |
identifier |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
395 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
396 |
^ IDENTIFIER_NO_DOLLAR |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
397 |
/ (TokenParser for:#identifier) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
398 |
/ (TokenParser for:#abstract) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
399 |
/ ASSERT |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
400 |
/ (TokenParser for:#class) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
401 |
/ EXTENDS |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
402 |
/ (TokenParser for:#factory) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
403 |
/ (TokenParser for:#get) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
404 |
/ (TokenParser for:#implements) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
405 |
/ (TokenParser for:#import) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
406 |
/ (TokenParser for:#interface) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
407 |
/ (TokenParser for:#is) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
408 |
/ (TokenParser for:#library) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
409 |
/ (TokenParser for:#native) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
410 |
/ NEGATE |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
411 |
/ OPERATOR |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
412 |
/ (TokenParser for:#set) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
413 |
/ (TokenParser for:#source) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
414 |
/ (TokenParser for:#static) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
415 |
/ (TokenParser for:#typedef) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
416 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
417 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
418 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
419 |
importReference |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
420 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
421 |
^(((TokenParser for:#identifier) , (':' asParser)) optional) , (TokenParser for:#string) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
422 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
423 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
424 |
importReferences |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
425 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
426 |
^importReference , (((',' asParser) , importReference) star) , ((',' asParser) optional) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
427 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
428 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
429 |
initializedIdentifier |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
430 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
431 |
^identifier , ((('=' asParser) , constantExpression) optional) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
432 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
433 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
434 |
initializedIdentifierList |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
435 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
436 |
^initializedIdentifier , (((',' asParser) , initializedIdentifier) star) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
437 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
438 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
439 |
initializedVariableDeclaration |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
440 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
441 |
^declaredIdentifier , ((('=' asParser) , constantExpression) optional) , (((',' asParser) , initializedIdentifier) star) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
442 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
443 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
444 |
initializers |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
445 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
446 |
^(':' asParser) , superCallOrFieldInitializer , (((',' asParser) , superCallOrFieldInitializer) star) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
447 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
448 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
449 |
interfaceDefinition |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
450 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
451 |
^(TokenParser for:#interface) , identifier , (typeParameters optional) , (superinterfaces optional) , (factorySpecification optional) , ('{' asParser) , (interfaceMemberDefinition star) , ('}' asParser) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
452 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
453 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
454 |
interfaceMemberDefinition |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
455 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
456 |
^ ((TokenParser for:#static) , (TokenParser for:#final) , (type optional) , initializedIdentifierList , (';' asParser)) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
457 |
/ (functionDeclaration , (';' asParser)) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
458 |
/ (constantConstructorDeclaration , (';' asParser)) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
459 |
/ (namedConstructorDeclaration , (';' asParser)) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
460 |
/ (specialSignatureDefinition , (';' asParser)) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
461 |
/ (variableDeclaration , (';' asParser)) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
462 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
463 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
464 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
465 |
interfaces |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
466 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
467 |
^(TokenParser for:#implements) , typeList |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
468 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
469 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
470 |
isOperator |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
471 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
472 |
^(TokenParser for:#is) , (('!!' asParser) optional) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
473 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
474 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
475 |
iterationStatement |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
476 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
477 |
^ ((TokenParser for:#while) , ('(' asParser) , constantExpression , (')' asParser) , statement) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
478 |
/ ((TokenParser for:#do) , statement , (TokenParser for:#while) , ('(' asParser) , constantExpression , (')' asParser) , (';' asParser)) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
479 |
/ ((TokenParser for:#for) , ('(' asParser) , forLoopParts , (')' asParser) , statement) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
480 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
481 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
482 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
483 |
label |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
484 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
485 |
^identifier , (':' asParser) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
486 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
487 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
488 |
libraryBody |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
489 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
490 |
^(libraryImport optional) , (librarySource optional) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
491 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
492 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
493 |
libraryDefinition |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
494 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
495 |
^(TokenParser for:#library) , ('{' asParser) , libraryBody , ('}' asParser) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
496 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
497 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
498 |
libraryImport |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
499 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
500 |
^(TokenParser for:#import) , ('=' asParser) , ('[' asParser) , (importReferences optional) , (']' asParser) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
501 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
502 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
503 |
librarySource |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
504 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
505 |
^(TokenParser for:#source) , ('=' asParser) , ('[' asParser) , (sourceUrls optional) , (']' asParser) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
506 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
507 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
508 |
libraryUnit |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
509 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
510 |
^libraryDefinition end |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
511 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
512 |
"Modified: / 11-01-2013 / 10:07:55 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
513 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
514 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
515 |
listLiteral |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
516 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
517 |
^('[' asParser) , ((expressionList , ((',' asParser) optional)) optional) , (']' asParser) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
518 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
519 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
520 |
literal |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
521 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
522 |
^ (TokenParser for: #null) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
523 |
/ (TokenParser for: #true) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
524 |
/ (TokenParser for: #false) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
525 |
/ (TokenParser for: #number) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
526 |
/ (TokenParser for:#string) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
527 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
528 |
"Modified: / 11-01-2013 / 10:08:48 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
529 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
530 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
531 |
logicalAndExpression |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
532 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
533 |
^bitwiseOrExpression , ((('&&' asParser) , bitwiseOrExpression) star) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
534 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
535 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
536 |
logicalOrExpression |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
537 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
538 |
^logicalAndExpression , ((('||' asParser) , logicalAndExpression) star) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
539 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
540 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
541 |
mapLiteral |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
542 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
543 |
^('{' asParser) , ((mapLiteralEntry , (((',' asParser) , mapLiteralEntry) star) , ((',' asParser) optional)) optional) , ('}' asParser) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
544 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
545 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
546 |
mapLiteralEntry |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
547 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
548 |
^(TokenParser for:#string) , (':' asParser) , constantExpression |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
549 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
550 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
551 |
methodDeclaration |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
552 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
553 |
^ factoryConstructorDeclaration |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
554 |
/ ((TokenParser for:#static) , functionDeclaration) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
555 |
/ specialSignatureDefinition |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
556 |
/ (functionDeclaration , (initializers optional)) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
557 |
/ (namedConstructorDeclaration , (initializers optional)) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
558 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
559 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
560 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
561 |
multiplicativeExpression |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
562 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
563 |
^ (unaryExpression , ((multiplicativeOperator , unaryExpression) star)) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
564 |
/ ((TokenParser for:#super) , ((multiplicativeOperator , unaryExpression) plus)) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
565 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
566 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
567 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
568 |
multiplicativeOperator |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
569 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
570 |
^ ('*' asParser) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
571 |
/ ('/' asParser) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
572 |
/ ('%' asParser) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
573 |
/ ('~/' asParser) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
574 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
575 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
576 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
577 |
namedArgument |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
578 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
579 |
^label , constantExpression |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
580 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
581 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
582 |
namedConstructorDeclaration |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
583 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
584 |
^identifier , ('.' asParser) , identifier , formalParameterList |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
585 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
586 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
587 |
namedFormalParameters |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
588 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
589 |
^('[' asParser) , defaultFormalParameter , (((',' asParser) , defaultFormalParameter) star) , (']' asParser) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
590 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
591 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
592 |
negateOperator |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
593 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
594 |
^ ('!!' asParser) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
595 |
/ ('~' asParser) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
596 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
597 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
598 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
599 |
nonLabelledStatement |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
600 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
601 |
^ block |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
602 |
/ (initializedVariableDeclaration , (';' asParser)) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
603 |
/ iterationStatement |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
604 |
/ selectionStatement |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
605 |
/ tryStatement |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
606 |
/ ((TokenParser for: #break) , (identifier optional) , (';' asParser)) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
607 |
/ ((TokenParser for: #continue) , (identifier optional) , (';' asParser)) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
608 |
/ ((TokenParser for: #return) , (constantExpression optional) , (';' asParser)) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
609 |
/ ((TokenParser for: #throw) , (constantExpression optional) , (';' asParser)) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
610 |
/ ((constantExpression optional) , (';' asParser)) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
611 |
/ ((TokenParser for: #assert) , ('(' asParser) , conditionalExpression , (')' asParser) , (';' asParser)) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
612 |
/ (functionDeclaration , functionBody) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
613 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
614 |
"Modified: / 11-01-2013 / 10:09:27 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
615 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
616 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
617 |
normalFormalParameter |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
618 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
619 |
^ functionDeclaration |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
620 |
/ fieldFormalParameter |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
621 |
/ simpleFormalParameter |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
622 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
623 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
624 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
625 |
normalFormalParameterTail |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
626 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
627 |
^ ((',' asParser) , namedFormalParameters) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
628 |
/ ((',' asParser) , normalFormalParameter , (normalFormalParameterTail optional)) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
629 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
630 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
631 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
632 |
postfixExpression |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
633 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
634 |
^ (assignableExpression , postfixOperator) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
635 |
/ (primary , (selector star)) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
636 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
637 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
638 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
639 |
postfixOperator |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
640 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
641 |
^ ('++' asParser) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
642 |
/ ('--' asParser) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
643 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
644 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
645 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
646 |
prefixOperator |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
647 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
648 |
^ additiveOperator |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
649 |
/ negateOperator |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
650 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
651 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
652 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
653 |
primary |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
654 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
655 |
^ primaryNoFE |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
656 |
/ primaryFE |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
657 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
658 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
659 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
660 |
primaryFE |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
661 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
662 |
^ functionExpression |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
663 |
/ primaryNoFE |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
664 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
665 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
666 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
667 |
primaryNoFE |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
668 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
669 |
^ (TokenParser for:#this) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
670 |
/ ((TokenParser for:#super) , assignableSelector) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
671 |
/ literal |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
672 |
/ identifier |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
673 |
/ (((TokenParser for:#const) optional) , (typeArguments optional) , compoundLiteral) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
674 |
/ (((TokenParser for: #new) / (TokenParser for:#const) ) , type , ((('.' asParser) , identifier) optional) , arguments) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
675 |
/ expressionInParentheses |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
676 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
677 |
"Modified: / 11-01-2013 / 10:09:39 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
678 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
679 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
680 |
qualified |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
681 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
682 |
^identifier , ((('.' asParser) , identifier) optional) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
683 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
684 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
685 |
redirection |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
686 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
687 |
^(':' asParser) , (TokenParser for:#this) , ((('.' asParser) , identifier) optional) , arguments |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
688 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
689 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
690 |
relationalExpression |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
691 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
692 |
^ (shiftExpression , (((isOperator , type) / (relationalOperator , shiftExpression) ) optional)) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
693 |
/ ((TokenParser for:#super) , relationalOperator , shiftExpression) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
694 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
695 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
696 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
697 |
relationalOperator |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
698 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
699 |
^ (('>' asParser) , ('=' asParser)) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
700 |
/ ('>' asParser) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
701 |
/ ('<=' asParser) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
702 |
/ ('<' asParser) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
703 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
704 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
705 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
706 |
returnType |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
707 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
708 |
^ (TokenParser for: #void) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
709 |
/ type |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
710 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
711 |
"Modified: / 11-01-2013 / 10:09:53 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
712 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
713 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
714 |
selectionStatement |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
715 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
716 |
^ ((TokenParser for: #if) , ('(' asParser) , constantExpression , (')' asParser) , statement , (((TokenParser for: #else) , statement) optional)) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
717 |
/ ((TokenParser for: #switch) , ('(' asParser) , constantExpression , (')' asParser) , ('{' asParser) , (switchCase star) , (defaultCase optional) , ('}' asParser)) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
718 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
719 |
"Modified: / 11-01-2013 / 10:10:15 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
720 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
721 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
722 |
selector |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
723 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
724 |
^ assignableSelector |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
725 |
/ arguments |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
726 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
727 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
728 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
729 |
shiftExpression |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
730 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
731 |
^ (additiveExpression , ((shiftOperator , additiveExpression) star)) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
732 |
/ ((TokenParser for:#super) , ((shiftOperator , additiveExpression) plus)) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
733 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
734 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
735 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
736 |
shiftOperator |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
737 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
738 |
^ ('<<' asParser) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
739 |
/ (('>' asParser) , ('>' asParser) , ('>' asParser)) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
740 |
/ (('>' asParser) , ('>' asParser)) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
741 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
742 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
743 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
744 |
simpleFormalParameter |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
745 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
746 |
^ declaredIdentifier |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
747 |
/ identifier |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
748 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
749 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
750 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
751 |
sourceUrls |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
752 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
753 |
^(TokenParser for:#string) , (((',' asParser) , (TokenParser for:#string)) star) , ((',' asParser) optional) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
754 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
755 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
756 |
specialSignatureDefinition |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
757 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
758 |
^ (((TokenParser for:#static) optional) , (returnType optional) , getOrSet , identifier , formalParameterList) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
759 |
/ ((returnType optional) , (TokenParser for: #operator) , userDefinableOperator , formalParameterList) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
760 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
761 |
"Modified: / 11-01-2013 / 10:10:28 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
762 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
763 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
764 |
statement |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
765 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
766 |
^(label star) , nonLabelledStatement |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
767 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
768 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
769 |
statements |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
770 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
771 |
^statement star |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
772 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
773 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
774 |
staticFinalDeclaration |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
775 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
776 |
^identifier , ('=' asParser) , constantExpression |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
777 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
778 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
779 |
staticFinalDeclarationList |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
780 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
781 |
^staticFinalDeclaration , (((',' asParser) , staticFinalDeclaration) star) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
782 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
783 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
784 |
superCallOrFieldInitializer |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
785 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
786 |
^ ((TokenParser for:#super) , arguments) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
787 |
/ ((TokenParser for:#super) , ('.' asParser) , identifier , arguments) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
788 |
/ fieldInitializer |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
789 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
790 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
791 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
792 |
superclass |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
793 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
794 |
^(TokenParser for: #extends) , type |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
795 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
796 |
"Modified: / 11-01-2013 / 10:10:38 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
797 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
798 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
799 |
superinterfaces |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
800 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
801 |
^(TokenParser for: #extends) , typeList |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
802 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
803 |
"Modified: / 11-01-2013 / 10:10:45 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
804 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
805 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
806 |
switchCase |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
807 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
808 |
^(label optional) , (((TokenParser for:#case) , constantExpression , (':' asParser)) plus) , statements |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
809 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
810 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
811 |
topLevelDefinition |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
812 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
813 |
^ classDefinition |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
814 |
/ interfaceDefinition |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
815 |
/ functionTypeAlias |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
816 |
/ (functionDeclaration , functionBodyOrNative) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
817 |
/ ((returnType optional) , getOrSet , identifier , formalParameterList , functionBodyOrNative) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
818 |
/ ((TokenParser for:#final) , (type optional) , staticFinalDeclarationList , (';' asParser)) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
819 |
/ (constInitializedVariableDeclaration , (';' asParser)) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
820 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
821 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
822 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
823 |
tryStatement |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
824 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
825 |
^(TokenParser for: #try) , block , (((catchPart plus) , (finallyPart optional)) / finallyPart ) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
826 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
827 |
"Modified: / 11-01-2013 / 10:10:54 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
828 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
829 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
830 |
type |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
831 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
832 |
^qualified , (typeArguments optional) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
833 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
834 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
835 |
typeArguments |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
836 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
837 |
^('<' asParser) , typeList , ('>' asParser) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
838 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
839 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
840 |
typeList |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
841 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
842 |
^type , (((',' asParser) , type) star) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
843 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
844 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
845 |
typeParameter |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
846 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
847 |
^identifier , (((TokenParser for: #extends) , type) optional) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
848 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
849 |
"Modified: / 11-01-2013 / 10:11:03 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
850 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
851 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
852 |
typeParameters |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
853 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
854 |
^('<' asParser) , typeParameter , (((',' asParser) , typeParameter) star) , ('>' asParser) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
855 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
856 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
857 |
unaryExpression |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
858 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
859 |
^ postfixExpression |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
860 |
/ (prefixOperator , unaryExpression) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
861 |
/ (negateOperator , (TokenParser for:#super)) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
862 |
/ (('-' asParser) , (TokenParser for:#super)) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
863 |
/ (postfixOperator , assignableExpression) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
864 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
865 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
866 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
867 |
userDefinableOperator |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
868 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
869 |
^ multiplicativeOperator |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
870 |
/ additiveOperator |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
871 |
/ shiftOperator |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
872 |
/ relationalOperator |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
873 |
/ bitwiseOperator |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
874 |
/ ('==' asParser) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
875 |
/ ('~' asParser) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
876 |
/ (TokenParser for: #negate) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
877 |
/ (('[' asParser) , (']' asParser)) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
878 |
/ (('[' asParser) , (']' asParser) , ('=' asParser)) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
879 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
880 |
"Modified: / 11-01-2013 / 10:11:13 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
881 |
! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
882 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
883 |
variableDeclaration |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
884 |
|
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
885 |
^declaredIdentifier , (((',' asParser) , identifier) star) |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
886 |
! ! |
8fedb5e096fc
Initial grammar definition based on http://slps.github.com/zoo/index.html#Google_Dart.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
887 |
|
3 | 888 |
!Parser class methodsFor:'initialization'! |
889 |
||
890 |
debugging: aBoolean |
|
891 |
Debugging := aBoolean |
|
892 |
||
893 |
" |
|
894 |
JavaParser debugging: true. |
|
895 |
JavaParser debugging: false. |
|
896 |
" |
|
897 |
||
898 |
"Created: / 11-01-2013 / 11:32:46 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
899 |
! |
|
900 |
||
901 |
initialize |
|
902 |
"Invoked at system start or when the class is dynamically loaded." |
|
903 |
||
904 |
"/ please change as required (and remove this comment) |
|
905 |
||
906 |
Debugging := false. |
|
907 |
||
908 |
"Modified: / 11-01-2013 / 11:32:22 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
909 |
! ! |
|
910 |
||
911 |
!Parser methodsFor:'accessing'! |
|
912 |
||
913 |
start |
|
914 |
^compilationUnit , (TokenParser for: #EOF). |
|
915 |
||
916 |
"Created: / 11-01-2013 / 13:19:06 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
917 |
! ! |
|
918 |
||
919 |
!Parser methodsFor:'grammar'! |
|
920 |
||
921 |
additiveExpression |
|
922 |
||
923 |
^ (multiplicativeExpression , ((additiveOperator , multiplicativeExpression) star)) |
|
924 |
/ ((TokenParser for: #super) , ((additiveOperator , multiplicativeExpression) plus)) |
|
925 |
||
926 |
"Modified: / 11-01-2013 / 09:59:56 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
927 |
! |
|
928 |
||
929 |
additiveOperator |
|
930 |
||
931 |
^ ('+' asParser) |
|
932 |
/ ('-' asParser) |
|
933 |
||
934 |
! |
|
935 |
||
936 |
argumentList |
|
937 |
||
938 |
^ (namedArgument , (((',' asParser) , namedArgument) star)) |
|
939 |
/ (expressionList , (((',' asParser) , namedArgument) star)) |
|
940 |
||
941 |
! |
|
942 |
||
943 |
arguments |
|
944 |
||
945 |
^('(' asParser) , (argumentList optional) , (')' asParser) |
|
946 |
! |
|
947 |
||
948 |
assignableExpression |
|
949 |
||
950 |
^ (primary , (((arguments star) , assignableSelector) plus)) |
|
951 |
/ ((TokenParser for: #super) , assignableSelector) |
|
952 |
/ identifier |
|
953 |
||
954 |
"Modified: / 11-01-2013 / 10:00:12 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
955 |
! |
|
956 |
||
957 |
assignableSelector |
|
958 |
||
959 |
^ (('[' asParser) , constantExpression , (']' asParser)) |
|
960 |
/ (('.' asParser) , identifier) |
|
961 |
||
962 |
! |
|
963 |
||
964 |
assignmentOperator |
|
965 |
||
966 |
^ ('=' asParser) |
|
967 |
/ ('*=' asParser) |
|
968 |
/ ('/=' asParser) |
|
969 |
/ ('~/=' asParser) |
|
970 |
/ ('%=' asParser) |
|
971 |
/ ('+=' asParser) |
|
972 |
/ ('-=' asParser) |
|
973 |
/ ('<<=' asParser) |
|
974 |
/ (('>' asParser) , ('>' asParser) , ('>' asParser) , ('=' asParser)) |
|
975 |
/ (('>' asParser) , ('>' asParser) , ('=' asParser)) |
|
976 |
/ ('&=' asParser) |
|
977 |
/ ('^=' asParser) |
|
978 |
/ ('|=' asParser) |
|
979 |
||
980 |
! |
|
981 |
||
982 |
bitwiseAndExpression |
|
983 |
||
984 |
^ (equalityExpression , ((('&' asParser) , equalityExpression) star)) |
|
985 |
/ ((TokenParser for: #super) , ((('&' asParser) , equalityExpression) plus)) |
|
986 |
||
987 |
"Modified: / 11-01-2013 / 10:00:21 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
988 |
! |
|
989 |
||
990 |
bitwiseOperator |
|
991 |
||
992 |
^ ('&' asParser) |
|
993 |
/ ('^' asParser) |
|
994 |
/ ('|' asParser) |
|
995 |
||
996 |
! |
|
997 |
||
998 |
bitwiseOrExpression |
|
999 |
||
1000 |
^ (bitwiseXorExpression , ((('|' asParser) , bitwiseXorExpression) star)) |
|
1001 |
/ ((TokenParser for:#super) , ((('|' asParser) , bitwiseXorExpression) plus)) |
|
1002 |
||
1003 |
! |
|
1004 |
||
1005 |
bitwiseXorExpression |
|
1006 |
||
1007 |
^ (bitwiseAndExpression , ((('^' asParser) , bitwiseAndExpression) star)) |
|
1008 |
/ ((TokenParser for:#super) , ((('^' asParser) , bitwiseAndExpression) plus)) |
|
1009 |
||
1010 |
! |
|
1011 |
||
1012 |
block |
|
1013 |
||
1014 |
^('{' asParser) , statements , ('}' asParser) |
|
1015 |
! |
|
1016 |
||
1017 |
catchPart |
|
1018 |
||
1019 |
^(TokenParser for:#catch) , ('(' asParser) , declaredIdentifier , (((',' asParser) , declaredIdentifier) optional) , (')' asParser) , block |
|
1020 |
! |
|
1021 |
||
1022 |
classDefinition |
|
1023 |
||
1024 |
^ ((TokenParser for:#class) , identifier , (typeParameters optional) , (superclass optional) , (interfaces optional) , ('{' asParser) , (classMemberDefinition star) , ('}' asParser)) |
|
1025 |
/ ((TokenParser for:#class) , identifier , (typeParameters optional) , (interfaces optional) , (TokenParser for:#native) , (TokenParser for:#string) , ('{' asParser) , (classMemberDefinition star) , ('}' asParser)) |
|
1026 |
||
1027 |
! |
|
1028 |
||
1029 |
classMemberDefinition |
|
1030 |
||
1031 |
^ (declaration , (';' asParser)) |
|
1032 |
/ (constructorDeclaration , (';' asParser)) |
|
1033 |
/ (methodDeclaration , functionBodyOrNative) |
|
1034 |
/ ((TokenParser for:#const) , factoryConstructorDeclaration , functionNative) |
|
1035 |
||
1036 |
! |
|
1037 |
||
1038 |
compilationUnit |
|
1039 |
||
1040 |
^( ((TokenParser for: #'#!!') optional) , (directive star) , (topLevelDefinition star) ) |
|
1041 |
||
1042 |
"Modified: / 11-01-2013 / 13:18:31 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
1043 |
! |
|
1044 |
||
1045 |
compoundLiteral |
|
1046 |
||
1047 |
^ listLiteral |
|
1048 |
/ mapLiteral |
|
1049 |
||
1050 |
! |
|
1051 |
||
1052 |
conditionalExpression |
|
1053 |
||
1054 |
^logicalOrExpression , ((('?' asParser) , constantExpression , (':' asParser) , constantExpression) optional) |
|
1055 |
! |
|
1056 |
||
1057 |
constInitializedIdentifier |
|
1058 |
||
1059 |
^identifier , ((('=' asParser) , constantExpression) optional) |
|
1060 |
! |
|
1061 |
||
1062 |
constInitializedVariableDeclaration |
|
1063 |
||
1064 |
^declaredIdentifier , ((('=' asParser) , constantExpression) optional) , (((',' asParser) , constInitializedIdentifier) star) |
|
1065 |
! |
|
1066 |
||
1067 |
constantConstructorDeclaration |
|
1068 |
||
1069 |
^(TokenParser for:#const) , qualified , formalParameterList |
|
1070 |
! |
|
1071 |
||
1072 |
constantExpression |
|
1073 |
||
1074 |
^ (assignableExpression , assignmentOperator , constantExpression) |
|
1075 |
/ conditionalExpression |
|
1076 |
||
1077 |
! |
|
1078 |
||
1079 |
constructorDeclaration |
|
1080 |
||
1081 |
^ (identifier , formalParameterList , ((redirection / initializers ) optional)) |
|
1082 |
/ (namedConstructorDeclaration , ((redirection / initializers ) optional)) |
|
1083 |
||
1084 |
! |
|
1085 |
||
1086 |
declaration |
|
1087 |
||
1088 |
^ (constantConstructorDeclaration , ((redirection / initializers ) optional)) |
|
1089 |
/ (functionDeclaration , redirection) |
|
1090 |
/ (namedConstructorDeclaration , redirection) |
|
1091 |
/ ((TokenParser for:#abstract) , specialSignatureDefinition) |
|
1092 |
/ ((TokenParser for:#abstract) , functionDeclaration) |
|
1093 |
/ ((TokenParser for:#static) , (TokenParser for:#final) , (type optional) , staticFinalDeclarationList) |
|
1094 |
/ (((TokenParser for:#static) optional) , constInitializedVariableDeclaration) |
|
1095 |
||
1096 |
! |
|
1097 |
||
1098 |
declaredIdentifier |
|
1099 |
||
1100 |
^ ((TokenParser for:#final) , (type optional) , identifier) |
|
1101 |
/ ((TokenParser for:#var) , identifier) |
|
1102 |
/ (type , identifier) |
|
1103 |
||
1104 |
! |
|
1105 |
||
1106 |
defaultCase |
|
1107 |
||
1108 |
^(label optional) , (((TokenParser for:#case) , constantExpression , (':' asParser)) star) , (TokenParser for:#default) , (':' asParser) , statements |
|
1109 |
! |
|
1110 |
||
1111 |
defaultFormalParameter |
|
1112 |
||
1113 |
^normalFormalParameter , ((('=' asParser) , constantExpression) optional) |
|
1114 |
! |
|
1115 |
||
1116 |
directive |
|
1117 |
||
1118 |
^('#' asParser) , identifier , arguments , (';' asParser) |
|
1119 |
! |
|
1120 |
||
1121 |
equalityExpression |
|
1122 |
||
1123 |
^ (relationalExpression , ((equalityOperator , relationalExpression) optional)) |
|
1124 |
/ ((TokenParser for:#super) , equalityOperator , relationalExpression) |
|
1125 |
||
1126 |
! |
|
1127 |
||
1128 |
equalityOperator |
|
1129 |
||
1130 |
^ ('==' asParser) |
|
1131 |
/ ('!!=' asParser) |
|
1132 |
/ ('===' asParser) |
|
1133 |
/ ('!!==' asParser) |
|
1134 |
||
1135 |
! |
|
1136 |
||
1137 |
expression |
|
1138 |
||
1139 |
^ (assignableExpression , assignmentOperator , expression) |
|
1140 |
/ conditionalExpression |
|
1141 |
||
1142 |
"Created: / 11-01-2013 / 13:22:47 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
1143 |
! |
|
1144 |
||
1145 |
expressionInParentheses |
|
1146 |
||
1147 |
^('(' asParser) , constantExpression , (')' asParser) |
|
1148 |
! |
|
1149 |
||
1150 |
expressionList |
|
1151 |
||
1152 |
^constantExpression , (((',' asParser) , constantExpression) star) |
|
1153 |
! |
|
1154 |
||
1155 |
factoryConstructorDeclaration |
|
1156 |
||
1157 |
^(TokenParser for:#factory) , qualified , (typeParameters optional) , ((('.' asParser) , identifier) optional) , formalParameterList |
|
1158 |
! |
|
1159 |
||
1160 |
factorySpecification |
|
1161 |
||
1162 |
^(TokenParser for:#factory) , type |
|
1163 |
! |
|
1164 |
||
1165 |
fieldFormalParameter |
|
1166 |
||
1167 |
^(finalVarOrType optional) , (TokenParser for:#this) , ('.' asParser) , identifier |
|
1168 |
! |
|
1169 |
||
1170 |
fieldInitializer |
|
1171 |
||
1172 |
^(((TokenParser for:#this) , ('.' asParser)) optional) , identifier , ('=' asParser) , conditionalExpression |
|
1173 |
! |
|
1174 |
||
1175 |
finalVarOrType |
|
1176 |
||
1177 |
^ ((TokenParser for:#final) , (type optional)) |
|
1178 |
/ (TokenParser for:#var) |
|
1179 |
/ type |
|
1180 |
||
1181 |
! |
|
1182 |
||
1183 |
finallyPart |
|
1184 |
||
1185 |
^(TokenParser for:#finally) , block |
|
1186 |
! |
|
1187 |
||
1188 |
forInitializerStatement |
|
1189 |
||
1190 |
^ (initializedVariableDeclaration , (';' asParser)) |
|
1191 |
/ ((constantExpression optional) , (';' asParser)) |
|
1192 |
||
1193 |
! |
|
1194 |
||
1195 |
forLoopParts |
|
1196 |
||
1197 |
^ (forInitializerStatement , (constantExpression optional) , (';' asParser) , (expressionList optional)) |
|
1198 |
/ (declaredIdentifier , (TokenParser for:#in) , constantExpression) |
|
1199 |
/ (identifier , (TokenParser for:#in) , constantExpression) |
|
1200 |
||
1201 |
! |
|
1202 |
||
1203 |
formalParameterList |
|
1204 |
||
1205 |
^ (('(' asParser) , (namedFormalParameters optional) , (')' asParser)) |
|
1206 |
/ (('(' asParser) , normalFormalParameter , (normalFormalParameterTail optional) , (')' asParser)) |
|
1207 |
||
1208 |
! |
|
1209 |
||
1210 |
functionBody |
|
1211 |
||
1212 |
^ (('=>' asParser) , constantExpression , (';' asParser)) |
|
1213 |
/ block |
|
1214 |
||
1215 |
! |
|
1216 |
||
1217 |
functionBodyOrNative |
|
1218 |
||
1219 |
^ ((TokenParser for:#native) , functionBody) |
|
1220 |
/ functionNative |
|
1221 |
/ functionBody |
|
1222 |
||
1223 |
! |
|
1224 |
||
1225 |
functionDeclaration |
|
1226 |
||
1227 |
^(returnType optional) , identifier , formalParameterList |
|
1228 |
! |
|
1229 |
||
1230 |
functionExpression |
|
1231 |
||
1232 |
^(((returnType optional) , identifier) optional) , formalParameterList , functionExpressionBody |
|
1233 |
! |
|
1234 |
||
1235 |
functionExpressionBody |
|
1236 |
||
1237 |
^ (('=>' asParser) , constantExpression) |
|
1238 |
/ block |
|
1239 |
||
1240 |
! |
|
1241 |
||
1242 |
functionNative |
|
1243 |
||
1244 |
^(TokenParser for:#native) , ((TokenParser for:#string) optional) , (';' asParser) |
|
1245 |
! |
|
1246 |
||
1247 |
functionPrefix |
|
1248 |
||
1249 |
^(returnType optional) , identifier |
|
1250 |
! |
|
1251 |
||
1252 |
functionTypeAlias |
|
1253 |
||
1254 |
^(TokenParser for:#typedef) , functionPrefix , (typeParameters optional) , formalParameterList , (';' asParser) |
|
1255 |
! |
|
1256 |
||
1257 |
getOrSet |
|
1258 |
||
1259 |
^ (TokenParser for:#get) |
|
1260 |
/ (TokenParser for:#set) |
|
1261 |
||
1262 |
! |
|
1263 |
||
1264 |
identifier |
|
1265 |
||
1266 |
^ (TokenParser for:#identifier_no_dollar) |
|
1267 |
/ (TokenParser for:#identifier) |
|
1268 |
/ (TokenParser for:#abstract) |
|
1269 |
/ (TokenParser for:#assert) |
|
1270 |
/ (TokenParser for:#class) |
|
1271 |
/ (TokenParser for:#extends) |
|
1272 |
/ (TokenParser for:#factory) |
|
1273 |
/ (TokenParser for:#get) |
|
1274 |
/ (TokenParser for:#implements) |
|
1275 |
/ (TokenParser for:#import) |
|
1276 |
/ (TokenParser for:#interface) |
|
1277 |
/ (TokenParser for:#is) |
|
1278 |
/ (TokenParser for:#library) |
|
1279 |
/ (TokenParser for:#native) |
|
1280 |
/ (TokenParser for:#negate) |
|
1281 |
/ (TokenParser for:#operator) |
|
1282 |
/ (TokenParser for:#set) |
|
1283 |
/ (TokenParser for:#source) |
|
1284 |
/ (TokenParser for:#static) |
|
1285 |
/ (TokenParser for:#typedef) |
|
1286 |
||
1287 |
"Modified: / 11-01-2013 / 13:25:43 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
1288 |
! |
|
1289 |
||
1290 |
importReference |
|
1291 |
||
1292 |
^(((TokenParser for:#identifier) , (':' asParser)) optional) , (TokenParser for:#string) |
|
1293 |
! |
|
1294 |
||
1295 |
importReferences |
|
1296 |
||
1297 |
^importReference , (((',' asParser) , importReference) star) , ((',' asParser) optional) |
|
1298 |
! |
|
1299 |
||
1300 |
incrementOperator |
|
1301 |
||
1302 |
^ ('++' asParser) |
|
1303 |
/ ('--' asParser) |
|
1304 |
||
1305 |
"Created: / 11-01-2013 / 13:27:07 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
1306 |
! |
|
1307 |
||
1308 |
initializedIdentifier |
|
1309 |
||
1310 |
^identifier , ((('=' asParser) , constantExpression) optional) |
|
1311 |
! |
|
1312 |
||
1313 |
initializedIdentifierList |
|
1314 |
||
1315 |
^initializedIdentifier , (((',' asParser) , initializedIdentifier) star) |
|
1316 |
! |
|
1317 |
||
1318 |
initializedVariableDeclaration |
|
1319 |
||
1320 |
^declaredIdentifier , ((('=' asParser) , constantExpression) optional) , (((',' asParser) , initializedIdentifier) star) |
|
1321 |
! |
|
1322 |
||
1323 |
initializers |
|
1324 |
||
1325 |
^(':' asParser) , superCallOrFieldInitializer , (((',' asParser) , superCallOrFieldInitializer) star) |
|
1326 |
! |
|
1327 |
||
1328 |
interfaceDefinition |
|
1329 |
||
1330 |
^(TokenParser for:#interface) , identifier , (typeParameters optional) , (superinterfaces optional) , (factorySpecification optional) , ('{' asParser) , (interfaceMemberDefinition star) , ('}' asParser) |
|
1331 |
! |
|
1332 |
||
1333 |
interfaceMemberDefinition |
|
1334 |
||
1335 |
^ ((TokenParser for:#static) , (TokenParser for:#final) , (type optional) , initializedIdentifierList , (';' asParser)) |
|
1336 |
/ (functionDeclaration , (';' asParser)) |
|
1337 |
/ (constantConstructorDeclaration , (';' asParser)) |
|
1338 |
/ (namedConstructorDeclaration , (';' asParser)) |
|
1339 |
/ (specialSignatureDefinition , (';' asParser)) |
|
1340 |
/ (variableDeclaration , (';' asParser)) |
|
1341 |
||
1342 |
! |
|
1343 |
||
1344 |
interfaces |
|
1345 |
||
1346 |
^(TokenParser for:#implements) , typeList |
|
1347 |
! |
|
1348 |
||
1349 |
isOperator |
|
1350 |
||
1351 |
^(TokenParser for:#is) , (('!!' asParser) optional) |
|
1352 |
! |
|
1353 |
||
1354 |
iterationStatement |
|
1355 |
||
1356 |
^ ((TokenParser for:#while) , ('(' asParser) , constantExpression , (')' asParser) , statement) |
|
1357 |
/ ((TokenParser for:#do) , statement , (TokenParser for:#while) , ('(' asParser) , constantExpression , (')' asParser) , (';' asParser)) |
|
1358 |
/ ((TokenParser for:#for) , ('(' asParser) , forLoopParts , (')' asParser) , statement) |
|
1359 |
||
1360 |
! |
|
1361 |
||
1362 |
label |
|
1363 |
||
1364 |
^identifier , (':' asParser) |
|
1365 |
! |
|
1366 |
||
1367 |
libraryBody |
|
1368 |
||
1369 |
^(libraryImport optional) , (librarySource optional) |
|
1370 |
! |
|
1371 |
||
1372 |
libraryDefinition |
|
1373 |
||
1374 |
^(TokenParser for:#library) , ('{' asParser) , libraryBody , ('}' asParser) |
|
1375 |
! |
|
1376 |
||
1377 |
libraryImport |
|
1378 |
||
1379 |
^(TokenParser for:#import) , ('=' asParser) , ('[' asParser) , (importReferences optional) , (']' asParser) |
|
1380 |
! |
|
1381 |
||
1382 |
librarySource |
|
1383 |
||
1384 |
^(TokenParser for:#source) , ('=' asParser) , ('[' asParser) , (sourceUrls optional) , (']' asParser) |
|
1385 |
! |
|
1386 |
||
1387 |
libraryUnit |
|
1388 |
||
1389 |
^libraryDefinition end |
|
1390 |
||
1391 |
"Modified: / 11-01-2013 / 10:07:55 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
1392 |
! |
|
1393 |
||
1394 |
listLiteral |
|
1395 |
||
1396 |
^('[' asParser) , ((expressionList , ((',' asParser) optional)) optional) , (']' asParser) |
|
1397 |
! |
|
1398 |
||
1399 |
literal |
|
1400 |
||
1401 |
^ (TokenParser for: #null) |
|
1402 |
/ (TokenParser for: #true) |
|
1403 |
/ (TokenParser for: #false) |
|
1404 |
/ (TokenParser for: #number) |
|
1405 |
/ (TokenParser for:#string) |
|
1406 |
||
1407 |
"Modified: / 11-01-2013 / 10:08:48 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
1408 |
! |
|
1409 |
||
1410 |
logicalAndExpression |
|
1411 |
||
1412 |
^bitwiseOrExpression , ((('&&' asParser) , bitwiseOrExpression) star) |
|
1413 |
! |
|
1414 |
||
1415 |
logicalOrExpression |
|
1416 |
||
1417 |
^logicalAndExpression , ((('||' asParser) , logicalAndExpression) star) |
|
1418 |
! |
|
1419 |
||
1420 |
mapLiteral |
|
1421 |
||
1422 |
^('{' asParser) , ((mapLiteralEntry , (((',' asParser) , mapLiteralEntry) star) , ((',' asParser) optional)) optional) , ('}' asParser) |
|
1423 |
! |
|
1424 |
||
1425 |
mapLiteralEntry |
|
1426 |
||
1427 |
^(TokenParser for:#string) , (':' asParser) , constantExpression |
|
1428 |
! |
|
1429 |
||
1430 |
methodDeclaration |
|
1431 |
||
1432 |
^ factoryConstructorDeclaration |
|
1433 |
/ ((TokenParser for:#static) , functionDeclaration) |
|
1434 |
/ specialSignatureDefinition |
|
1435 |
/ (functionDeclaration , (initializers optional)) |
|
1436 |
/ (namedConstructorDeclaration , (initializers optional)) |
|
1437 |
||
1438 |
! |
|
1439 |
||
1440 |
multiplicativeExpression |
|
1441 |
||
1442 |
^ (unaryExpression , ((multiplicativeOperator , unaryExpression) star)) |
|
1443 |
/ ((TokenParser for:#super) , ((multiplicativeOperator , unaryExpression) plus)) |
|
1444 |
||
1445 |
! |
|
1446 |
||
1447 |
multiplicativeOperator |
|
1448 |
||
1449 |
^ ('*' asParser) |
|
1450 |
/ ('/' asParser) |
|
1451 |
/ ('%' asParser) |
|
1452 |
/ ('~/' asParser) |
|
1453 |
||
1454 |
! |
|
1455 |
||
1456 |
namedArgument |
|
1457 |
||
1458 |
^label , constantExpression |
|
1459 |
! |
|
1460 |
||
1461 |
namedConstructorDeclaration |
|
1462 |
||
1463 |
^identifier , ('.' asParser) , identifier , formalParameterList |
|
1464 |
! |
|
1465 |
||
1466 |
namedFormalParameters |
|
1467 |
||
1468 |
^('[' asParser) , defaultFormalParameter , (((',' asParser) , defaultFormalParameter) star) , (']' asParser) |
|
1469 |
! |
|
1470 |
||
1471 |
negateOperator |
|
1472 |
||
1473 |
^ ('!!' asParser) |
|
1474 |
/ ('~' asParser) |
|
1475 |
||
1476 |
! |
|
1477 |
||
1478 |
nonLabelledStatement |
|
1479 |
||
1480 |
^ block |
|
1481 |
/ (initializedVariableDeclaration , (';' asParser)) |
|
1482 |
/ iterationStatement |
|
1483 |
/ selectionStatement |
|
1484 |
/ tryStatement |
|
1485 |
/ ((TokenParser for: #break) , (identifier optional) , (';' asParser)) |
|
1486 |
/ ((TokenParser for: #continue) , (identifier optional) , (';' asParser)) |
|
1487 |
/ ((TokenParser for: #return) , (constantExpression optional) , (';' asParser)) |
|
1488 |
/ ((TokenParser for: #throw) , (constantExpression optional) , (';' asParser)) |
|
1489 |
/ ((constantExpression optional) , (';' asParser)) |
|
1490 |
/ ((TokenParser for: #assert) , ('(' asParser) , conditionalExpression , (')' asParser) , (';' asParser)) |
|
1491 |
/ (functionDeclaration , functionBody) |
|
1492 |
||
1493 |
"Modified: / 11-01-2013 / 10:09:27 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
1494 |
! |
|
1495 |
||
1496 |
normalFormalParameter |
|
1497 |
||
1498 |
^ functionDeclaration |
|
1499 |
/ fieldFormalParameter |
|
1500 |
/ simpleFormalParameter |
|
1501 |
||
1502 |
! |
|
1503 |
||
1504 |
normalFormalParameterTail |
|
1505 |
||
1506 |
^ ((',' asParser) , namedFormalParameters) |
|
1507 |
/ ((',' asParser) , normalFormalParameter , (normalFormalParameterTail optional)) |
|
1508 |
||
1509 |
! |
|
1510 |
||
1511 |
postfixExpression |
|
1512 |
||
1513 |
^ (assignableExpression , postfixOperator) |
|
1514 |
/ (primary , (selector star)) |
|
1515 |
||
1516 |
! |
|
1517 |
||
1518 |
postfixOperator |
|
1519 |
||
1520 |
^ ('++' asParser) |
|
1521 |
/ ('--' asParser) |
|
1522 |
||
1523 |
! |
|
1524 |
||
1525 |
prefixOperator |
|
1526 |
||
1527 |
^ additiveOperator |
|
1528 |
/ negateOperator |
|
1529 |
||
1530 |
! |
|
1531 |
||
1532 |
primary |
|
1533 |
||
1534 |
^ primaryNoFE |
|
1535 |
/ primaryFE |
|
1536 |
||
1537 |
! |
|
1538 |
||
1539 |
primaryFE |
|
1540 |
||
1541 |
^ functionExpression |
|
1542 |
/ primaryNoFE |
|
1543 |
||
1544 |
! |
|
1545 |
||
1546 |
primaryNoFE |
|
1547 |
||
1548 |
^ (TokenParser for:#this) |
|
1549 |
/ ((TokenParser for:#super) , assignableSelector) |
|
1550 |
/ literal |
|
1551 |
/ identifier |
|
1552 |
/ (((TokenParser for:#const) optional) , (typeArguments optional) , compoundLiteral) |
|
1553 |
/ (((TokenParser for: #new) / (TokenParser for:#const) ) , type , ((('.' asParser) , identifier) optional) , arguments) |
|
1554 |
/ expressionInParentheses |
|
1555 |
||
1556 |
"Modified: / 11-01-2013 / 10:09:39 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
1557 |
! |
|
1558 |
||
1559 |
qualified |
|
1560 |
||
1561 |
^identifier , ((('.' asParser) , identifier) optional) |
|
1562 |
! |
|
1563 |
||
1564 |
redirection |
|
1565 |
||
1566 |
^(':' asParser) , (TokenParser for:#this) , ((('.' asParser) , identifier) optional) , arguments |
|
1567 |
! |
|
1568 |
||
1569 |
relationalExpression |
|
1570 |
||
1571 |
^ (shiftExpression , (((isOperator , type) / (relationalOperator , shiftExpression) ) optional)) |
|
1572 |
/ ((TokenParser for:#super) , relationalOperator , shiftExpression) |
|
1573 |
||
1574 |
! |
|
1575 |
||
1576 |
relationalOperator |
|
1577 |
||
1578 |
^ (('>' asParser) , ('=' asParser)) |
|
1579 |
/ ('>' asParser) |
|
1580 |
/ ('<=' asParser) |
|
1581 |
/ ('<' asParser) |
|
1582 |
||
1583 |
! |
|
1584 |
||
1585 |
returnType |
|
1586 |
||
1587 |
^ (TokenParser for: #void) |
|
1588 |
/ type |
|
1589 |
||
1590 |
"Modified: / 11-01-2013 / 10:09:53 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
1591 |
! |
|
1592 |
||
1593 |
selectionStatement |
|
1594 |
||
1595 |
^ ((TokenParser for: #if) , ('(' asParser) , constantExpression , (')' asParser) , statement , (((TokenParser for: #else) , statement) optional)) |
|
1596 |
/ ((TokenParser for: #switch) , ('(' asParser) , constantExpression , (')' asParser) , ('{' asParser) , (switchCase star) , (defaultCase optional) , ('}' asParser)) |
|
1597 |
||
1598 |
"Modified: / 11-01-2013 / 10:10:15 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
1599 |
! |
|
1600 |
||
1601 |
selector |
|
1602 |
||
1603 |
^ assignableSelector |
|
1604 |
/ arguments |
|
1605 |
||
1606 |
! |
|
1607 |
||
1608 |
shiftExpression |
|
1609 |
||
1610 |
^ (additiveExpression , ((shiftOperator , additiveExpression) star)) |
|
1611 |
/ ((TokenParser for:#super) , ((shiftOperator , additiveExpression) plus)) |
|
1612 |
||
1613 |
! |
|
1614 |
||
1615 |
shiftOperator |
|
1616 |
||
1617 |
^ ('<<' asParser) |
|
1618 |
/ (('>' asParser) , ('>' asParser) , ('>' asParser)) |
|
1619 |
/ (('>' asParser) , ('>' asParser)) |
|
1620 |
||
1621 |
! |
|
1622 |
||
1623 |
simpleFormalParameter |
|
1624 |
||
1625 |
^ declaredIdentifier |
|
1626 |
/ identifier |
|
1627 |
||
1628 |
! |
|
1629 |
||
1630 |
sourceUrls |
|
1631 |
||
1632 |
^(TokenParser for:#string) , (((',' asParser) , (TokenParser for:#string)) star) , ((',' asParser) optional) |
|
1633 |
! |
|
1634 |
||
1635 |
specialSignatureDefinition |
|
1636 |
||
1637 |
^ (((TokenParser for:#static) optional) , (returnType optional) , getOrSet , identifier , formalParameterList) |
|
1638 |
/ ((returnType optional) , (TokenParser for: #operator) , userDefinableOperator , formalParameterList) |
|
1639 |
||
1640 |
"Modified: / 11-01-2013 / 10:10:28 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
1641 |
! |
|
1642 |
||
1643 |
statement |
|
1644 |
||
1645 |
^(label star) , nonLabelledStatement |
|
1646 |
! |
|
1647 |
||
1648 |
statements |
|
1649 |
||
1650 |
^statement star |
|
1651 |
! |
|
1652 |
||
1653 |
staticFinalDeclaration |
|
1654 |
||
1655 |
^identifier , ('=' asParser) , constantExpression |
|
1656 |
! |
|
1657 |
||
1658 |
staticFinalDeclarationList |
|
1659 |
||
1660 |
^staticFinalDeclaration , (((',' asParser) , staticFinalDeclaration) star) |
|
1661 |
! |
|
1662 |
||
1663 |
superCallOrFieldInitializer |
|
1664 |
||
1665 |
^ ((TokenParser for:#super) , arguments) |
|
1666 |
/ ((TokenParser for:#super) , ('.' asParser) , identifier , arguments) |
|
1667 |
/ fieldInitializer |
|
1668 |
||
1669 |
! |
|
1670 |
||
1671 |
superclass |
|
1672 |
||
1673 |
^(TokenParser for: #extends) , type |
|
1674 |
||
1675 |
"Modified: / 11-01-2013 / 10:10:38 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
1676 |
! |
|
1677 |
||
1678 |
superinterfaces |
|
1679 |
||
1680 |
^(TokenParser for: #extends) , typeList |
|
1681 |
||
1682 |
"Modified: / 11-01-2013 / 10:10:45 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
1683 |
! |
|
1684 |
||
1685 |
switchCase |
|
1686 |
||
1687 |
^(label optional) , (((TokenParser for:#case) , constantExpression , (':' asParser)) plus) , statements |
|
1688 |
! |
|
1689 |
||
1690 |
topLevelDefinition |
|
1691 |
||
1692 |
^ classDefinition |
|
1693 |
/ interfaceDefinition |
|
1694 |
/ functionTypeAlias |
|
1695 |
/ (functionDeclaration , functionBodyOrNative) |
|
1696 |
/ ((returnType optional) , getOrSet , identifier , formalParameterList , functionBodyOrNative) |
|
1697 |
/ ((TokenParser for:#final) , (type optional) , staticFinalDeclarationList , (';' asParser)) |
|
1698 |
/ (constInitializedVariableDeclaration , (';' asParser)) |
|
1699 |
||
1700 |
! |
|
1701 |
||
1702 |
tryStatement |
|
1703 |
||
1704 |
^(TokenParser for: #try) , block , (((catchPart plus) , (finallyPart optional)) / finallyPart ) |
|
1705 |
||
1706 |
"Modified: / 11-01-2013 / 10:10:54 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
1707 |
! |
|
1708 |
||
1709 |
type |
|
1710 |
||
1711 |
^qualified , (typeArguments optional) |
|
1712 |
! |
|
1713 |
||
1714 |
typeArguments |
|
1715 |
||
1716 |
^('<' asParser) , typeList , ('>' asParser) |
|
1717 |
! |
|
1718 |
||
1719 |
typeList |
|
1720 |
||
1721 |
^type , (((',' asParser) , type) star) |
|
1722 |
! |
|
1723 |
||
1724 |
typeParameter |
|
1725 |
||
1726 |
^identifier , (((TokenParser for: #extends) , type) optional) |
|
1727 |
||
1728 |
"Modified: / 11-01-2013 / 10:11:03 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
1729 |
! |
|
1730 |
||
1731 |
typeParameters |
|
1732 |
||
1733 |
^('<' asParser) , typeParameter , (((',' asParser) , typeParameter) star) , ('>' asParser) |
|
1734 |
! |
|
1735 |
||
1736 |
unaryExpression |
|
1737 |
||
1738 |
^ postfixExpression |
|
1739 |
/ (prefixOperator , unaryExpression) |
|
1740 |
/ (negateOperator , (TokenParser for:#super)) |
|
1741 |
/ (('-' asParser) , (TokenParser for:#super)) |
|
1742 |
/ (postfixOperator , assignableExpression) |
|
1743 |
||
1744 |
! |
|
1745 |
||
1746 |
userDefinableOperator |
|
1747 |
||
1748 |
^ multiplicativeOperator |
|
1749 |
/ additiveOperator |
|
1750 |
/ shiftOperator |
|
1751 |
/ relationalOperator |
|
1752 |
/ bitwiseOperator |
|
1753 |
/ ('==' asParser) |
|
1754 |
/ ('~' asParser) |
|
1755 |
/ (TokenParser for: #negate) |
|
1756 |
/ (('[' asParser) , (']' asParser)) |
|
1757 |
/ (('[' asParser) , (']' asParser) , ('=' asParser)) |
|
1758 |
||
1759 |
"Modified: / 11-01-2013 / 10:11:13 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
1760 |
! |
|
1761 |
||
1762 |
variableDeclaration |
|
1763 |
||
1764 |
^declaredIdentifier , (((',' asParser) , identifier) star) |
|
1765 |
! ! |
|
1766 |
||
1767 |
!Parser methodsFor:'initialization'! |
|
1768 |
||
1769 |
initializeStartingAt: aSymbol |
|
1770 |
| allVariableNames ignoredVariableNames productionIndexesAndNames debugger | |
|
1771 |
self initialize. |
|
1772 |
||
1773 |
Debugging ifTrue:[ |
|
1774 |
PPDebugger notNil ifTrue:[ |
|
1775 |
self assert: (Smalltalk loadPackage: 'stx:goodies/petitparser/devtools'). |
|
1776 |
debugger := PPDebugger new |
|
1777 |
]. |
|
1778 |
]. |
|
1779 |
"find all the productions that need to be initialized" |
|
1780 |
allVariableNames := self class allInstVarNames |
|
1781 |
collect: [ :each | each asSymbol ]. |
|
1782 |
ignoredVariableNames := self class ignoredNames |
|
1783 |
collect: [ :each | each asSymbol ]. |
|
1784 |
productionIndexesAndNames := ((1 to: self class instSize) |
|
1785 |
collect: [ :index | index -> (allVariableNames at: index) ]) |
|
1786 |
reject: [ :assoc | ignoredVariableNames includes: assoc value ]. |
|
1787 |
||
1788 |
"initialize productions with an undefined parser to be replaced later" |
|
1789 |
parser := PPUnresolvedParser named: aSymbol. |
|
1790 |
productionIndexesAndNames do: [ :assoc | |
|
1791 |
self instVarAt: assoc key put: (PPUnresolvedParser named: assoc value) ]. |
|
1792 |
parser def: (self perform: aSymbol). |
|
1793 |
||
1794 |
"resolve unresolved parsers with their actual implementation" |
|
1795 |
productionIndexesAndNames do: [ :assoc | |
|
1796 |
(self respondsTo: assoc value) |
|
1797 |
ifFalse: [ self error: 'Unable to initialize ' , assoc value printString ] |
|
1798 |
ifTrue: [ |
|
1799 |
| production | |
|
1800 |
production := ((self perform: assoc value) name: assoc value; yourself). |
|
1801 |
Debugging ifTrue:[ |
|
1802 |
production := PPDebuggingParser parser: production debugger: debugger |
|
1803 |
]. |
|
1804 |
||
1805 |
(self instVarAt: assoc key) def: production. |
|
1806 |
||
1807 |
] ] |
|
1808 |
||
1809 |
"Created: / 12-03-2012 / 16:51:01 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
1810 |
"Modified: / 11-01-2013 / 11:35:52 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
1811 |
! ! |
|
1812 |
||
1
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1813 |
!Parser::TokenParser class methodsFor:'instance creation'! |
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1814 |
|
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1815 |
for: tokenType |
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1816 |
|
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1817 |
^self new tokenType: tokenType |
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1818 |
|
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1819 |
"Created: / 14-03-2012 / 23:10:29 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1820 |
! ! |
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1821 |
|
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1822 |
!Parser::TokenParser methodsFor:'accessing'! |
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1823 |
|
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1824 |
tokenType |
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1825 |
^ tokenType |
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1826 |
! |
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1827 |
|
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1828 |
tokenType:aSymbol |
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1829 |
tokenType := aSymbol. |
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1830 |
! ! |
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1831 |
|
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1832 |
!Parser::TokenParser methodsFor:'parsing'! |
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1833 |
|
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1834 |
parseOn:aJavaScanner |
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1835 |
"Parse aStream with the receiving parser and answer the parse-result or an instance of PPFailure. |
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1836 |
Override this method in subclasses to specify custom parse behavior. Do not call this method from outside, |
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1837 |
instead use #parse:." |
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1838 |
|
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1839 |
| pos | |
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1840 |
|
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1841 |
pos := aJavaScanner position. |
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1842 |
|
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1843 |
^(aJavaScanner nextToken = tokenType) ifTrue:[ |
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1844 |
aJavaScanner token |
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1845 |
] ifFalse:[ |
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1846 |
aJavaScanner position: pos. |
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1847 |
PPFailure message: (tokenType printString , ' token expected (got ', aJavaScanner tokenType , ' {',(aJavaScanner tokenValue ? '<nil>') printString,'})') at: aJavaScanner position |
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1848 |
] |
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1849 |
|
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1850 |
"Modified: / 17-03-2012 / 13:34:15 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1851 |
! ! |
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1852 |
|
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1853 |
!Parser class methodsFor:'documentation'! |
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1854 |
|
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1855 |
version_HG |
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1856 |
|
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1857 |
^ '$Changeset: <not expanded> $' |
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1858 |
! ! |
3 | 1859 |
|
1860 |
Parser initialize! |