Browse Source

Parser simplification.

Herby Vojčík 5 years ago
parent
commit
aabe66283c
1 changed files with 1 additions and 3 deletions
  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())