C++ parser

1100110 0b1100110 at gmail.com
Wed May 22 14:38:48 PDT 2013


On 05/22/2013 04:07 PM, Dicebot wrote:
> On Wednesday, 22 May 2013 at 20:39:08 UTC, 1100110 wrote:
>> Hmmm... Or you could try using pegged (or CTPG or goldie or dparser).
>>
>> I haven't played with it too much, but there's a C grammar, and it
>> mentions the ability to specify semantic actions, so.... That's like 1/3
>> of the way to something usable.
>>
>> https://github.com/PhilippeSigaud/Pegged/wiki/Semantic-Actions
> 
> Writing C++ grammar parser in Pegged/Goldie from scratch so that it can
> produce usable AST... Well, good luck! :)

I know right?  (I figured there's probably a half-baked one floating
around somewhere...)

But we kinda need something good like http://luajit.org/ext_ffi.html...

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 900 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20130522/9fd6215c/attachment.pgp>


More information about the Digitalmars-d mailing list