@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/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|AS)
1087
+ : ('>'|'>='|'<'|'<='|'=='|'!='|'+'|'/'|'-'|'='|'&&'|'||'|'^'|INSTANCEOF)
1082
1088
  { $$ = $1; }
1083
1089
  ;
1084
1090
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenk/wml",
3
- "version": "2.13.0",
3
+ "version": "2.13.1",
4
4
  "description": "(WML) is a DSL for describing user interfaces in web applications.",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {