Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for CST input #1412

Open
KernelDeimos opened this issue Jul 9, 2024 · 1 comment
Open

Support for CST input #1412

KernelDeimos opened this issue Jul 9, 2024 · 1 comment

Comments

@KernelDeimos
Copy link

When I found out someone is working on a format-preserving printer for @babel/generate, I also saw in a comment that @babel/parser has a tokens parameter that outputs a CST. Well, kind of; it outputs the AST and then dumps the lexer output as well, so it seems. I haven't yet found a "real" CST-outputting parser for javascript (well, I found this repo but it looks dead). recast supporting babel's output with tokens: true would make it possible to fix issues like this one

@conartist6
Copy link
Contributor

@KernelDeimos hi, it sounds like you're looking for my project, BABLR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants