-
Notifications
You must be signed in to change notification settings - Fork 41
Conversation
Add IS_BEG macro to start getting in sync with 1.9 impl. Fix lexer for open paren. Fix lexState assignment for tLABEL scanning. Add missing EXPR_* values, even if we're not using them yet.
I can't do anything with the output from the CI. It says nothing of value. Clue?
|
Well, the changes to the parser produce a syntax error in Class.rb during primitive loading. There isn't much more in the log :( |
The last time I debugged parser issues in primitive loading, I started a display pauseoneThen at the topaz prompt execute the following commands output push loadprims.out Topaz will stop at the first error . On Thu, Apr 30, 2015 at 8:14 AM, Tim Felgentreff notifications@github.com
|
Thanks Allan. That got me back on track, tho I'm mostly debugging by using This should have put us back on track. It does not yet fix the two files that were broken in the last merge. I'll look at those next. |
@zenspider thanks for doing all that work! The last time @matthias-springer and I worked on the parser (for the initial 1.9 push), it was a wholly frustrating experience... |
BTW, my current approach is simply to fix up the state transitions as needed to match MRI 1.9's. This work is being done against the current parser and only towards addressing the cmdarg bug and any related bugs that crop up. I also have a branch that is overhauling the entire grammar to match 1.9's (the current is a hybrid, but mostly 1.8). But since it's a much larger endeavor, I wanted to get the mainline running again so other's can keep going. |
@timfel you're very very welcome. I'm just happy I can even contribute. I agree that it is frustrating, but I think I've got a couple tricks that are helping. I've doped all state transitions in MRI's and maglev's parsers and can run the same code side-by-side to see where we differ. It has made hunting these down a much easier affair. |
Hold off merging. I might have a quick fix for the other files. Repro: :rescue really. :( |
incoming |
This reverts commit 0197347.
OK. Please review and merge. |
} | ||
|
||
// TODO: paren_nest++; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What are the issues with this todo pending? Do you have any code that doesn't parse because of this in particular?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ignore me, Chrome didn't refresh the code for some reason..
Correct state transitions for cmdargs. Fixes #373.