Robert Feldt | 1 May 10:16

Re: working on a C grammar

Hi Michael,

Check out Rats source distribution ( http://www.cs.nyu.edu/rgrimm/xtc/xtc-core.zip )
in xtc/src/xtc/lang/C.rats which is a complete C grammar. It might use Rats-specific constructs and the license is GPL2 so maybe not liberal enough.

Regards,

Robert Feldt

On Thu, May 1, 2008 at 3:54 AM, Michael FIG <michael-y8U0i/lyZOM@public.gmane.org> wrote:
Hi all,

I was wondering if any of you out there have a freely licensed PEG for
C?  I'm interested in combining it with a C preprocessor grammar to
start interpreting (or compiling via Slink) some C code.  With a
little work, this would be extensible to handle Id code, and then we'd
be one step closer to bootstrap.

If not, I have at least a decent BNF reference at
http://ivs.cs.uni-magdeburg.de/~puma/UsersManual/HTML/node12.html
though I would rather start from something that has all the operator
precedences completed in PEG format.

Thanks,

--
Michael FIG <michael-y8U0i/lyZOM@public.gmane.org> //\
  http://michael.fig.org/    \//

_______________________________________________
fonc mailing list
fonc-uVco7kAcSAQ@public.gmane.org
http://vpri.org/mailman/listinfo/fonc



--
Best regards,

/Robert Feldt
--
PhD, Assistant Professor in Software Engineering
Blekinge Inst. of Technology, School of Engineering (APS), SE-372 25 Ronneby, Sweden
Cell: +46 (0) 733 580 580
Personal web: http://drfeldt.googlepages.com/
Research group web: http://www.bth.se/tek/serl/
<div>
<p>Hi Michael,<br><br>Check out Rats source distribution ( <a href="http://www.cs.nyu.edu/rgrimm/xtc/xtc-core.zip">http://www.cs.nyu.edu/rgrimm/xtc/xtc-core.zip</a> )<br>in xtc/src/xtc/lang/C.rats which is a complete C grammar. It might use Rats-specific constructs and the license is GPL2 so maybe not liberal enough.<br><br>Regards,<br><br>Robert Feldt<br><br></p>
<div class="gmail_quote">On Thu, May 1, 2008 at 3:54 AM, Michael FIG &lt;<a href="mailto:michael@...">michael@...</a>&gt; wrote:<br><blockquote class="gmail_quote">
Hi all,<br><br>
I was wondering if any of you out there have a freely licensed PEG for<br>
C? &nbsp;I'm interested in combining it with a C preprocessor grammar to<br>
start interpreting (or compiling via Slink) some C code. &nbsp;With a<br>
little work, this would be extensible to handle Id code, and then we'd<br>
be one step closer to bootstrap.<br><br>
If not, I have at least a decent BNF reference at<br><a href="http://ivs.cs.uni-magdeburg.de/%7Epuma/UsersManual/HTML/node12.html" target="_blank">http://ivs.cs.uni-magdeburg.de/~puma/UsersManual/HTML/node12.html</a><br>
though I would rather start from something that has all the operator<br>
precedences completed in PEG format.<br><br>
Thanks,<br><br>
--<br>
Michael FIG &lt;<a href="mailto:michael@...">michael@...</a>&gt; //\<br>
 &nbsp; <a href="http://michael.fig.org/" target="_blank">http://michael.fig.org/</a> &nbsp; &nbsp;\//<br><br>
_______________________________________________<br>
fonc mailing list<br><a href="mailto:fonc@...">fonc@...</a><br><a href="http://vpri.org/mailman/listinfo/fonc" target="_blank">http://vpri.org/mailman/listinfo/fonc</a><br>
</blockquote>
</div>
<br><br clear="all"><br>-- <br>Best regards,<br><br>/Robert Feldt<br>--<br>PhD, Assistant Professor in Software Engineering<br>Blekinge Inst. of Technology, School of Engineering (APS), SE-372 25 Ronneby, Sweden<br>
Cell: +46 (0) 733 580 580<br>Personal web: <a href="http://drfeldt.googlepages.com/">http://drfeldt.googlepages.com/</a><br>Research group web: <a href="http://www.bth.se/tek/serl/">http://www.bth.se/tek/serl/</a>
</div>

Gmane