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

Testing the code examples #135

Open
mingodad opened this issue Jan 1, 2024 · 1 comment
Open

Testing the code examples #135

mingodad opened this issue Jan 1, 2024 · 1 comment

Comments

@mingodad
Copy link

mingodad commented Jan 1, 2024

I did a Lua script to extract the code examples and test then here robertoraggi/cplusplus#314 to test it's independent parser https://github.com/robertoraggi/cplusplus and other parsers as well like g++ and clang .

Around 5% of the examples fail (some are due to missing include files or the libstdc++ installed on my Ubuntu 18.04).

If this project doesn't have a script to test the code examples you can use/adapt it .

@mingodad
Copy link
Author

See here tree-sitter/tree-sitter-cpp#243 for a script using tree-sitter and Lua to check for errors on the documentation like the ones bellow:

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