소스 검색

Parser simplification.

Herby Vojčík 6 년 전
부모
커밋
aabe66283c
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  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())