acodercc / jcon

A JavaScript parser combinator Library
MIT License
3 stars 3 forks source link

是否增加isAstNode的标识 #8

Closed acodercc closed 9 years ago

acodercc commented 9 years ago

见需求 https://github.com/takumi4ichi/shorthair/issues/1

acodercc commented 9 years ago

已经增加setAst后处理器 另外在parse成功时,返回的result结果的原型对象上,增加了ast方法,可以打印当前节点为root节点的解析树相应的ast树(使用规范的同型ast)

https://github.com/takumi4ichi/jcon/commit/fd9f964eda20d6fd73096dc91dbed8057402e623 https://github.com/takumi4ichi/jcon/commit/e51222d4f3431a4f4ae2812cd2569b77c74c12d7