Concrete Syntax Tree

David Bruant bruant.d at gmail.com
Tue Mar 18 08:20:34 PDT 2014


Hi,

Kyle Simpson and others are starting a concrete syntax tree project
https://github.com/getify/concrete-syntax-tree
It spawned out of a long discussion on the escodegen repo 
https://github.com/Constellation/escodegen/pull/133

The main problem it addresses is that the mainly used AST (SpiderMonkey 
AST reused in esprima and other projects) looses cosmetic information 
(extra parens, whitespaces, semi-colons) which can be useful when 
writing tools enforcing coding style.

I'm just sharing the information here as I believe lots of people 
reading es-discuss will be interested in this project.

See you in the "registration thread" at 
https://github.com/getify/concrete-syntax-tree/issues/1 :-)

David


More information about the es-discuss mailing list