problems with demo_Cgrammar.pl in Parse-RecDescent-1.93??
[email protected] ("Christophe Milard (EAB)") Thu, 10 Apr 2003 17:05:40 +0200
| Newsgroups | perl.recdescent |
|---|---|
| Message-ID | <1F55F6582266314A85A55F6241509B67C99C8E@Esealnt863.al.sw.ericsson.se> |
Hi all
Sorry to bother you and thank-you for reading.
I am in the need of parsing C file, and I'd like to do this with Recdescent.
So I had a look at the demo_Cgrammar.pl provided with Recdescent. But when I run the exemple it doesn't look it likes C code at all:
I get parsing failure (resulting in "Bad C code" message) for C files as simple as:
main()
{
int a;
}
(The same with: void main(void) {int a;})
Does anyone have tried to parse C with Descent?... In that case, which grammar did you use?
Thanks for you feed-back,
/Christophe.