Skip to content
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

Abstract syntax trees & backend for C11parser #19

Open
RockBrentwood opened this issue Dec 27, 2019 · 0 comments
Open

Abstract syntax trees & backend for C11parser #19

RockBrentwood opened this issue Dec 27, 2019 · 0 comments

Comments

@RockBrentwood
Copy link

The libfirm library (on GitHub: https://github.com/libfirm/libfirm) provides all the basics required for processing abstract syntax trees, carrying out a range of standard optimizations, and targeting for a range of back ends.

When combined with a suitable parser, it may suffice to serve as a drop-in replacement for GCC's implementation of C11 or C18.

A companion front end, cparser, is also provided (on GitHub: https://github.com/libfirm/cparser) that contains suitable abstract syntax trees for C11, but a recursive-descent parser. It may be possible to adapt its tree-construction, tree-walking and semantic analysis routines into your parser - thereby making possible a larger suite of regression tests against a larger codebase (including the parser itself).

A note has also been sent to cparser informing the developers of your regression tests under "tests" and your lexer and parser. The two sets of projects, C11parser and cparser, should actually be combined.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant