[ Off-line from the group ] An exercise which might help the Perl community (and in the process bring attention to c2ast), would be to run a c2ast.pl --check reservedNames on the Perl source, and submit it to perl5-porters (or perlbug?).
[...] Cleaning up the namespace will be hard -- the Perl source intrudes on the reserved namespace heavily. And many people may not realize the reason to keep the namespace clean -- it'll seem like a lot of work to deal with something that is not an issue.
I'm emailing you direct off-line because you're the obvious first-choice to do this. If you like the idea, reply back into the main list. Otherwise, I may throw this open to the list as a "Target of Opportunity".
-- jeffrey
--
You received this message because you are subscribed to the Google Groups "marpa parser" group.
To unsubscribe from this group and stop receiving emails from it, send an email to marpa-parser...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Thanks for this feedback. All of them has been pushed on my todo list, and you will get feedback progressively.Right now, I have fixed the grammar (gcc __extension__ keyword was misplaced) and have released a new version of MarpaX::Languages::C::AST. Which parses successfully the perl-5.18.1 sources, increasing the confidence level on c2ast.pl to a quite high value -;
to be the same as the original C (no textual diff, sans whitespace perhaps)to do the same (no binary diff perhaps?) as the original C file when compiled with the same compiler.
It does and would croak if not the case.
FYI the raw output of c2ast output on the whole perl-5.1.8.1 source tree is attached.I am thinking to use google documents's spreadsheet to produce some sexy output -;
Thanks / JD.
Le mercredi 25 décembre 2013 11:04:01 UTC+1, rns a écrit :Now with ASF's traversing at hand, given that c2ast.pl produces unambiguous parses (as it should be, I think), ASF's become effectively AST's and
--
Now with ASF's traversing at hand, given that c2ast.pl produces unambiguous parses (as it should be, I think), ASF's become effectively AST's and the MarpaX::Languages::C::AST::dump() can be done by simply visiting each glade and appending glade->literal() as needed with suitable whitespace?Or is it not that easy?