Explorar o código

Parser simplification.

Herby Vojčík %!s(int64=6) %!d(string=hai) anos
pai
achega
aabe66283c
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  1. 1 3
      support/parser.pegjs

+ 1 - 3
support/parser.pegjs

@@ -190,7 +190,7 @@ wsStatements =
 	} /
 	expressions:wsExpressions? {return expressions || [];}
 
-wsSequenceWs = ws temps:temps? statements:(ws js:jsSequence ws {return [js];} / st:wsStatements maybeDotsWs {return st;})? {
+wsSequenceWs = ws temps:temps? statements:(ws js:jsStatement ws {return [js];} / st:wsStatements maybeDotsWs {return st;})? {
 	return $globals.SequenceNode._new()
 		._location_(location())
 		._source_(text())
@@ -198,8 +198,6 @@ wsSequenceWs = ws temps:temps? statements:(ws js:jsSequence ws {return [js];} /
 		._dagChildren_(statements || []);
 }
 
-jsSequence = jsStatement
-
 block = '[' params:wsBlockParamList? sequence:wsSequenceWs ']' {
 	return $globals.BlockNode._new()
 		._location_(location())