Skip to content
This repository
Browse code

Clean up smalltalk grammar

  • Loading branch information...
commit 578bb98f2139fa1e82e99e9687932de59fb96ab6 1 parent 01e8d15
Slava Pestov authored mrjbq7 committed

Showing 1 changed file with 4 additions and 2 deletions. Show diff stats Hide diff stats

  1. +4 2 extra/smalltalk/parser/parser.factor
6 extra/smalltalk/parser/parser.factor
@@ -145,12 +145,14 @@ UnaryMessageSend = (UnaryMessageSend | Operand):lhs
145 145 (OptionalWhiteSpace ";" Message:m => [[ m ]])*:t
146 146 => [[ lhs t h prefix >array <ast-cascade> ]]
147 147
148   -BinaryMessageSend = (BinaryMessageSend | UnaryMessageSend | Operand):lhs
  148 +BinaryMessageSendLHS = (BinaryMessageSend | UnaryMessageSend | Operand)
  149 +
  150 +BinaryMessageSend = BinaryMessageSendLHS:lhs
149 151 BinaryMessage:h
150 152 (OptionalWhiteSpace ";" Message:m => [[ m ]])*:t
151 153 => [[ lhs t h prefix >array <ast-cascade> ]]
152 154
153   -KeywordMessageSend = (BinaryMessageSend | UnaryMessageSend | Operand):lhs
  155 +KeywordMessageSend = BinaryMessageSendLHS:lhs
154 156 KeywordMessage:h
155 157 (OptionalWhiteSpace ";" Message:m => [[ m ]])*:t
156 158 => [[ lhs t h prefix >array <ast-cascade> ]]

0 comments on commit 578bb98

Please sign in to comment.
Something went wrong with that request. Please try again.