waxeye-org / waxeye

Waxeye is a parser generator based on parsing expression grammars (PEGs). It supports C, Java, JavaScript, Python, Racket, and Ruby.
https://waxeye-org.github.io/waxeye/index.html
Other
235 stars 38 forks source link

[Javascript/Typescript] Add position information to AST nodes #92

Closed jishi9 closed 4 years ago

jishi9 commented 5 years ago

This PR updates the Javascript/Typescript parser to include position information to AST nodes, i.e. the span of input text that the AST node was parsed from.

Co-authored with @glebm

Fixes #69

glebm commented 5 years ago

Looks good to me.