-
Notifications
You must be signed in to change notification settings - Fork 30
different error approach, should be backwards compatible #3
base: master
Are you sure you want to change the base?
Conversation
keep state and error state differently add current line number to state (only works in files using \n as newline) update calc sample, document it better after you no longer allow backtracking, place @"..." signs reporting the error see annotated sample/calc.g how this works.
That's an awesome idea :) rock would benefit a lot from using this error type instead. Just running out of time to handle everything (argl), have you tried to regenerate https://github.com/nddrylliog/nagaqueen with it? |
On Mon, Jun 20, 2011 at 11:26 PM, nddrylliog
no, sorry Actually I think I'll work on this more later this month, but likely I will remove the buffer that windows over the input, lots of times I will remove the global non scoped text completely, I think it can I will add a position (line, char) statement, that just like yytext Since this will break greg, I get the opportunity to introduce a real not sure when I'll work on this, basically whenever I need something regards, |
All those ideas look good. I suggest you create another branch to work on In this whole discussion you seem to subtly imply that greg's architecture So yes, architecture changes and cleanups are good, I agree with your ideas, Cheers, On Tue, Jun 21, 2011 at 9:54 AM, onnlucky <
Amos Wenger |
oh no trouble, I just assumed all the cruft was from ian :) especially the whole input window/buffer/alloc it is good you went this far, I used leg before, but abandoned that because I didn't have the heart to make it thread safe and remove all the leaks ... so thank you and _why |
Hi,
Hope you like this, I've used this style of error reporting with much success in jmeta. (see the calc.g sample)
There are still minor issues with it, but if you don't use it it shouldn't be in the way... however, I've reworked quite some stuff in the guts of greg. I think I'll need to tidy that up at one point.
(typing 'aaa' in the calculator should report: expected end of line, but reports: (null))
And likely this needs api to fetch the message, the offending line, and such.
tl;dr; good start but work in progress ...