[bug] Parsing of selectors with underscore is broken

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[bug] Parsing of selectors with underscore is broken

Holger Hans Peter Freyther-3
Issue status update for
http://smalltalk.gnu.org/node/716
Post a follow up:
http://smalltalk.gnu.org/project/comments/add/716

 Project:      GNU Smalltalk
 Version:      <none>
 Component:    STInST
 Category:     bug reports
 Priority:     normal
 Assigned to:  Unassigned
 Reported by:  zecke
 Updated by:   zecke
 Status:       active

When parsing the GemStone MontiCello definition I stumbled about two
issues:


st> STInST.RBParser parseExpression: 'self _foo'
RBAssignmentNode(self := foo)

st> STInST.RBParser parseExpression: '[:x:y | x+y]'
Object: RBParser new "<0x55913658>" error: (a #String):1: Variable name
expected
Error(Exception)>>signal (ExcHandling.st:254)
...


According to ANSI Smalltalk the '_' is reserved by the implementation.
Either we parse it or we reject it but it is certainly not an
assignment?

The other one appears to be valid according to ANSI Smalltalk.



_______________________________________________
help-smalltalk mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-smalltalk