소스 검색

parser: remove redundancy

Herbert Vojčík 8 년 전
부모
커밋
022bf1b69e
2개의 변경된 파일1개의 추가작업 그리고 4개의 파일을 삭제
  1. 0 3
      support/parser.js
  2. 1 1
      support/parser.pegjs

+ 0 - 3
support/parser.js

@@ -3199,9 +3199,6 @@ $globals.SmalltalkParser = (function() {
           s3 = peg$parsews();
           if (s3 !== peg$FAILED) {
             s4 = peg$parseunarySend();
-            if (s4 === peg$FAILED) {
-              s4 = peg$parseoperand();
-            }
             if (s4 !== peg$FAILED) {
               peg$reportedPos = s0;
               s1 = peg$c116(s2, s4);

+ 1 - 1
support/parser.pegjs

@@ -184,7 +184,7 @@ unarySend      = receiver:operand ws tail:unaryTail? {
                      }
                  }
 
-binaryMessage  = ws selector:binarySelector ws arg:(unarySend / operand) {
+binaryMessage  = ws selector:binarySelector ws arg:unarySend {
                      return $globals.SendNode._new()
                             ._position_((line()).__at(column()))
                             ._source_(text())