[bug] Parsing state not properly reset on parse error

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

[bug] Parsing state not properly reset on parse error

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

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

st> #(String
stdin:2: expected true, false or nil
st> 3+3
st>
st>
st>
st>
st> .
6st>
st>
st> 3+3
st> )
6stdin: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



_______________________________________________
help-smalltalk mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: [bug] Parsing state not properly reset on parse error

Paolo Bonzini-3
Issue status update for
http://smalltalk.gnu.org/project/issue/676
Post a follow up:
http://smalltalk.gnu.org/project/comments/add/676

 Project:      GNU Smalltalk
 Version:      <none>
-Component:    VM
+Component:    Documentation
 Category:     bug reports
 Priority:     normal
 Assigned to:  Unassigned
 Reported by:  zecke
 Updated by:   bonzinip
 Status:       active

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?)



_______________________________________________
help-smalltalk mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: [bug] Parsing state not properly reset on parse error

Holger Hans Peter Freyther-3
In reply to this post by Holger Hans Peter Freyther-3
Issue status update for
http://smalltalk.gnu.org/project/issue/676
Post a follow up:
http://smalltalk.gnu.org/project/comments/add/676

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

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



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