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.
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
Kyle Simpson and others are starting a concrete syntax tree project getify/concrete-syntax-tree It spawned out of a long discussion on the escodegen repo Constellation/escodegen#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 getify/concrete-syntax-tree#1 :-)