Parsing state not properly reset on parse error

Project:GNU Smalltalk
Component:Documentation
Category:bug
Priority:normal
Assigned:Unassigned
Status:active
Description
st> #(String
stdin:2: expected true, false or nil
st> 3+3
st>
st>
st>
st>
st> .
6st>
st>
st> 3+3
st> )
6

stdin:11: expected expression
st>
stdin:13: expected expression
st>
st>
stdin:15: expected expression
st>
st>
stdin:17: expected expression
st>
st>
stdin:19: expected expression
st>
st>
stdin:21: expected expression
st>
st>
stdin:23: expected expression
st> 6+2
st>
stdin:25: expected expression
st>
st>
stdin:27: expected expression
st> .
st>
stdin:29: expected expression

Updates

#1 submitted by Paolo Bonzini on Sat, 12/29/2012 - 14:17
Component:VM» Documentation

There's not much that the parser can do to find the proper point to reset parsing from.

What GST does is to reset the parsing when it finds an exclamation mark. Perhaps it could be documented better? (Or is it documented at all?)

#2 submitted by Holger Hans Pet... on Sun, 02/10/2013 - 16:25

Interesting. The usage to reset the parser state has not been documented. I will attempt to write some text for that.

User login