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

Add an AST and AST-parsing mode #15

Closed
domenic opened this issue Sep 26, 2014 · 3 comments
Closed

Add an AST and AST-parsing mode #15

domenic opened this issue Sep 26, 2014 · 3 comments
Labels

Comments

@domenic
Copy link
Member

domenic commented Sep 26, 2014

This would be the first step for building an "emdfmt" tool that reformats your Ecmarkdown exactly how I like it.

As a bonus, I suppose you'd want to re-build the HTML outputter as an AST visitor.

@domenic domenic added the feature label Jan 9, 2015
@domenic
Copy link
Member Author

domenic commented Jul 24, 2015

This is largely done, via #22, although we can hold off on exposing it until I actually want to build such a tool. But yeah, just use the tokenizer then the parser and call parseDocument and you'll get yourself an AST. Such a tool would use a custom emitter.

@bterlson
Copy link
Member

#22 solved everything but world peace!

@bakkot
Copy link
Contributor

bakkot commented Jul 26, 2020

This is done. Ecmarkup consumes the AST directly in the process of linting, so it's useful even in the absence of a custom emitter.

@bakkot bakkot closed this as completed Jul 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants