Skip to content

Commit 040b078

Browse files
committed
update parsergen core and ecs syntax
1 parent 6aa5e7e commit 040b078

File tree

2 files changed

+207
-258
lines changed

2 files changed

+207
-258
lines changed

imports/ecs_parser.csp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Covariant Script Parser Generator: Grammar of Extended CovScript(ECS Lang) v1.1.3
1+
# Covariant Script Parser Generator: Grammar of Extended CovScript(ECS Lang) v1.1.5
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -126,7 +126,7 @@ var covscript_syntax = {
126126
},
127127
"var-bind-list" : {syntax.cond_or(
128128
{syntax.token("id")},
129-
{syntax.token("...")},
129+
{syntax.term("...")},
130130
{syntax.ref("var-bind")}
131131
)},
132132
"var-list" : {
@@ -277,7 +277,7 @@ var covscript_syntax = {
277277
"unary-expr" : {syntax.cond_or(
278278
{syntax.ref("unary-op"), syntax.ref("unary-expr")},
279279
{syntax.cond_or({syntax.term("new")}, {syntax.term("gcnew")}), syntax.ref("unary-expr"), syntax.optional(syntax.ref("array"))},
280-
{syntax.ref("prim-expr"), syntax.nlook(syntax.token("endl")), syntax.optional(syntax.ref("postfix-expr"))}
280+
{syntax.ref("prim-expr"), syntax.optional(syntax.nlook(syntax.token("endl")), syntax.ref("postfix-expr"))}
281281
)},
282282
"unary-op" : {syntax.cond_or(
283283
{syntax.term("typeid")},

0 commit comments

Comments
 (0)