D parsing

cal callumenator at gmail.com
Tue Nov 5 12:45:08 PST 2013


On Tuesday, 5 November 2013 at 17:23:23 UTC, Martin Nowak wrote:
> On 11/01/2013 09:59 PM, Philippe Sigaud wrote:
>> The examples directory shows different grammars, from JSON to 
>> XML to C to D.
>
> Sounds promising.
> I think I found a way to implement a D REPL but are lacking a 
> reliable way to classify code snippets (expressions, 
> declarations, statements) and get introduced symbol names.
> Do you think it will be able to handle that (performance is not 
> an issue)?

I did similar using Pegged little while back
(https://github.com/callumenator/dabble), I tuned the PEG grammar
quite a lot, but it worked ok.


More information about the Digitalmars-d mailing list