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

Refactor lang::cpp::AST into lang::c::AST and lang::cpp::AST? #37

Open
jurgenvinju opened this issue Jul 1, 2022 · 3 comments
Open

Comments

@jurgenvinju
Copy link
Member

No description provided.

@bsddemon
Copy link

bsddemon commented Jul 1, 2022

I have an archive with C and C++ files. Currently, it does not matter if a file is in C or C++. Will this change?

@jurgenvinju
Copy link
Member Author

No that functionality will remain the same; the CPP parser still behaves the same, also when applied to C code.

But, now you can also parse only C (using a different function) and it will throw errors if you use C++ constructs there.

And, there were C files which were not parsed accurately by the CPP parser before. So there is an option to "do better" now, by using the right parser function for the right file extension.

@bsddemon
Copy link

bsddemon commented Jul 1, 2022

Clear. Nice improvement. Thanks.

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

2 participants