AST files instead of DI interface files for faster compilation and easier distribution

Chris Cain clcain at uncg.edu
Mon Jun 18 17:47:50 PDT 2012


On Monday, 18 June 2012 at 18:05:59 UTC, Daniel wrote:
> Same here, I wish there were a standardized pre-lexed-token 
> "binary" file-format, would benefit all text editors also, as 
> they need to lex it anyway to perform color syntax highlighting.

If I were to make my own language, I'd forego a human-readable 
format and just have the "language" be defined as a big 
machine-readable AST. You'd have to have an IDE, but it could 
display the code in just about any way the person wants (syntax, 
style, etc).

Syntax highlighting would be instantaneous and there would be 
fewer errors made by programmers (maybe ...). Plus it'd be 
unbelievably easy to implement things like auto-completion.


More information about the Digitalmars-d mailing list