Add Number and Vector to grammar
This commit is contained in:
1 parent
e3d4c88f66
commit
d761433382
1 file changed
+14
-2
+14
-2
@@ -1,18 +1,27 @@
|
|||||||
tree;
|
tree;
|
||||||
|
|
||||||
|
drop /\s+/;
|
||||||
|
|
||||||
|
token comma /,/;
|
||||||
|
token gt />/;
|
||||||
token height;
|
token height;
|
||||||
token lcurly;
|
token lcurly /\{/;
|
||||||
|
token lt /</;
|
||||||
token options;
|
token options;
|
||||||
token rcurly;
|
token rcurly /\}/;
|
||||||
token scene;
|
token scene;
|
||||||
token width;
|
token width;
|
||||||
|
|
||||||
token uint /\d+/;
|
token uint /\d+/;
|
||||||
|
token number /-?\d+(\.\d+)?/;
|
||||||
|
|
||||||
Start -> Options? Scene;
|
Start -> Options? Scene;
|
||||||
|
|
||||||
Height -> height uint;
|
Height -> height uint;
|
||||||
|
|
||||||
|
Number -> uint;
|
||||||
|
Number -> number;
|
||||||
|
|
||||||
Options -> options lcurly OptionsItems rcurly;
|
Options -> options lcurly OptionsItems rcurly;
|
||||||
|
|
||||||
OptionsItems -> ;
|
OptionsItems -> ;
|
||||||
@@ -25,4 +34,7 @@ Scene -> scene lcurly SceneItems rcurly;
|
|||||||
|
|
||||||
SceneItems -> ;
|
SceneItems -> ;
|
||||||
|
|
||||||
|
Vector -> lt Number comma Number comma Number gt;
|
||||||
|
Vector -> lt Number comma Number comma Number comma Number gt;
|
||||||
|
|
||||||
Width -> width uint;
|
Width -> width uint;
|
||||||
Reference in new issue
Block a user