pointlander / peg

Peg, Parsing Expression Grammar, is an implementation of a Packrat parser generator.
BSD 3-Clause "New" or "Revised" License
1.01k stars 120 forks source link

c grammar failed with multiline macro define #16

Open zhcy opened 10 years ago

zhcy commented 10 years ago

define sum (a,b,c ) \

a +b + c

bdamm commented 5 years ago

pointlander's peg doesn't handle preprocessing. You need to pipe the C files through a preprocessor before parsing it with the peg C parser.