author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Fri, 11 Jan 2013 10:12:41 +0000 | |
changeset 2 | 8fedb5e096fc |
parent 1 | 46dd2b3b6974 |
child 3 | 46c322c66a29 |
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' |
1
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
44 |
classVariableNames:'' |
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 |
|
1
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
888 |
!Parser::TokenParser class methodsFor:'instance creation'! |
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
889 |
|
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
890 |
for: tokenType |
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
891 |
|
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
892 |
^self new tokenType: tokenType |
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
893 |
|
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
894 |
"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
|
895 |
! ! |
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
896 |
|
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
897 |
!Parser::TokenParser methodsFor:'accessing'! |
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
898 |
|
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
899 |
tokenType |
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
900 |
^ tokenType |
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
901 |
! |
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
902 |
|
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
903 |
tokenType:aSymbol |
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
904 |
tokenType := aSymbol. |
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
905 |
! ! |
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
906 |
|
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
907 |
!Parser::TokenParser methodsFor:'parsing'! |
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
908 |
|
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
909 |
parseOn:aJavaScanner |
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
910 |
"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
|
911 |
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
|
912 |
instead use #parse:." |
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
913 |
|
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
914 |
| pos | |
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
915 |
|
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
916 |
pos := aJavaScanner position. |
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
917 |
|
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
918 |
^(aJavaScanner nextToken = tokenType) ifTrue:[ |
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
919 |
aJavaScanner token |
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
920 |
] ifFalse:[ |
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
921 |
aJavaScanner position: pos. |
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
922 |
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
|
923 |
] |
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
924 |
|
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
925 |
"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
|
926 |
! ! |
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
927 |
|
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
928 |
!Parser class methodsFor:'documentation'! |
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
929 |
|
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
930 |
version_HG |
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
931 |
|
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
932 |
^ '$Changeset: <not expanded> $' |
46dd2b3b6974
Initial outline of Dart parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
933 |
! ! |