Encapsulating trust

via Digitalmars-d digitalmars-d at puremagic.com
Tue Sep 2 13:35:05 PDT 2014


On Tuesday, 2 September 2014 at 20:31:18 UTC, ketmar via 
Digitalmars-d wrote:
> actually, changing parsers is not that fun, 'cause writing 
> parser needs
> "inner knowledge" about compiler and it's AST. and writing 
> complete
> parser is very tedious. and you will not be able to write 
> "whitespace
> sensitive" parser anyway, 'cause it needs new scanner and lexer.

If it changes a lot then you can do it as a builtin preprocessor 
that compiles to D then hand it over to the regular parser.

> in other words: i'm not ready for this challenge yet. i'd 
> better stick
> with my patches and leave custom parsers for somebody else.

Mhmmm, and here I thought I could lure you into paving the way 
for my own ambitious syntactical changes… ;-)


More information about the Digitalmars-d mailing list