[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: I would like to know...



Hi Guy,

Some times ago (feb. 2001), E. Gagnon wrote:

"C is much easier to parse, in general, but there are currently
no complete C grammar (with necessary related customized lexers/parsers)
for SableCC."

I would like to know if it is always true now (that seems to be the
case, from the tests I carried out on the C grammar found on the
sablecc web site).

The ISO C grammar I wrote for sablecc.3.beta1 has a customized lexer and
parser to deal with problems such as the ambiguous typedef/identifier
productions found in the ISO/IEC 9899:1999 standard.

http://www.ninthave.net/~roger/sablecc/isoc-1.0.0.tar.gz

It was never used at a production level, although that was the intention
and it would certainly be a good starting point if you are looking for a
C grammar.

The grammar has not been updated to work with sablecc.3.beta2 which made
some syntax changes to grammar files.

Regards,

Roger

--
-------------------------------------------------------------
Ninth Avenue Software                      p: +61 7 3870 8494
                                           f: +61 7 3870 8491
      _       _       _                    m: +61 405 048 371
   __(@)<  __(@)>  __(@),          w: http://www.ninthave.net
   \___)   \___)   \___)              e: r.keays@ninthave.net
-------------------------------------------------------------

PO Box 4179                             Send your spam to Sam
St Lucia South                               sam@ninthave.net
Queensland 4067
Australia                         http://www.ninthave.net/sam