-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes to CParser #51
Fixes to CParser #51
Conversation
Makes the tests in gap-system/gap#2628 pass. I can't say that I understand |
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.
I really have no idea how that code works, and would rather not try to understand it. On a quick cursory examination, it all seems sane. Since you dug into it, and it works for you, that's enough for me.
But of course it'd be great if @rbehrends could have a look, too.
ward/cparser.lua
Outdated
@@ -546,6 +546,38 @@ local function build_for_stmt(init, cond, step, body) | |||
return init_node, exit_node | |||
end | |||
|
|||
local function build_compount_stmt_local_variables(str, pos, declarations) |
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.
compount -> compound
Thanks, that was a rather embarrassing typo. |
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.
Looks good and also seems to work.
This PR
compound_statement
by pulling a large inline function out of the ruleint sz = size((int []){ });
to be parsedThe changes come in three commits. I could open 3 separate PRs, if this is requested.