Comments are included in the AST, the AST should be reprojectable into canonical plaint text.
> - How to store code before preprocessing (C and C++) ?
This could get tricky, punt. cdata
> - How to store files mixing several languages (PHP, HTML, Javascript) ?
Same file format, different semantics. PHP is a DSL.
My new language manifesto includes having a mandatory publicly defined AST.
Comments are included in the AST, the AST should be reprojectable into canonical plaint text.
> - How to store code before preprocessing (C and C++) ?
This could get tricky, punt. cdata
> - How to store files mixing several languages (PHP, HTML, Javascript) ?
Same file format, different semantics. PHP is a DSL.
My new language manifesto includes having a mandatory publicly defined AST.