Browse Source

parser: remove redundancy

Herbert Vojčík 8 years ago
parent
commit
022bf1b69e
2 changed files with 1 additions and 4 deletions
  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())