@quenk/wml 2.13.0 → 2.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/compile/codegen.js +4 -4
- package/lib/compile/codegen.js.map +1 -1
- package/lib/compile/codegen.ts +6 -5
- package/lib/parse/ast.d.ts +2 -2
- package/lib/parse/ast.js.map +1 -1
- package/lib/parse/ast.ts +1 -1
- package/lib/parse/generated.js +850 -827
- package/lib/parse/wml.y +7 -1
- package/package.json +1 -1
package/lib/parse/wml.y
CHANGED
|
@@ -810,9 +810,15 @@ binary_expression
|
|
|
810
810
|
| simple_expression binary_operator '(' expression ')'
|
|
811
811
|
{$$ = new yy.ast.BinaryExpression($1, $2, $4, @$); }
|
|
812
812
|
|
|
813
|
+
| simple_expression AS type
|
|
814
|
+
{$$ = new yy.ast.BinaryExpression($1, $2, $3, @$); }
|
|
815
|
+
|
|
813
816
|
| '(' expression ')' binary_operator simple_expression
|
|
814
817
|
{$$ = new yy.ast.BinaryExpression($2, $4, $5, @$); }
|
|
815
818
|
|
|
819
|
+
| '(' expression ')' AS type
|
|
820
|
+
{$$ = new yy.ast.BinaryExpression($2, $4, $5, @$); }
|
|
821
|
+
|
|
816
822
|
| '(' expression ')' binary_operator '(' expression ')'
|
|
817
823
|
{$$ = new yy.ast.BinaryExpression($2, $4, $6, @$); }
|
|
818
824
|
;
|
|
@@ -1078,7 +1084,7 @@ unqualified_identifier
|
|
|
1078
1084
|
;
|
|
1079
1085
|
|
|
1080
1086
|
binary_operator
|
|
1081
|
-
: ('>'|'>='|'<'|'<='|'=='|'!='|'+'|'/'|'-'|'='|'&&'|'||'|'^'|INSTANCEOF
|
|
1087
|
+
: ('>'|'>='|'<'|'<='|'=='|'!='|'+'|'/'|'-'|'='|'&&'|'||'|'^'|INSTANCEOF)
|
|
1082
1088
|
{ $$ = $1; }
|
|
1083
1089
|
;
|
|
1084
1090
|
|