C grammar example #358
Answered
by
ColinH
fknfilewalker
asked this question in
Q&A
C grammar example
#358
-
Is there an example that shows how to parse a c grammar? Or is this too much for PEGTL? |
Beta Was this translation helpful? Give feedback.
Answered by
ColinH
Jan 17, 2024
Replies: 1 comment 2 replies
-
We do not currently have an example for the C grammar. I don't think it would be too much for the PEGTL to implement a C parser, however it's a bit too much for an example that we would write just "for fun", i.e. without having a serious use case for it. We'd be happy to give support if you were to write one, and are always open to contributions ;-) |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
ColinH
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
We do not currently have an example for the C grammar. I don't think it would be too much for the PEGTL to implement a C parser, however it's a bit too much for an example that we would write just "for fun", i.e. without having a serious use case for it. We'd be happy to give support if you were to write one, and are always open to contributions ;-)