arithy / packcc

A parser generator for C
Other
348 stars 29 forks source link

C predicates #45

Closed andrewchambers closed 3 years ago

andrewchambers commented 3 years ago

Would it be possible to allow C predicates to participate in matching?

For example:

foonumber <- <[0-9]+> ?? { atoi($1) > 50 }
arithy commented 3 years ago

It's an interesting functionality. However, I don't plan to realize it due to the reasons below:

andrewchambers commented 3 years ago

No problem, thanks for explaining.