Open eightyfive opened 3 years ago
Hey @eightyfive
I guess it does not work with the latest vyper version/syntax:
Yeah, that's a bug.
What's the status of the library ?
I've been meaning to work on this to get it to a minimally functional state, but have had too little time so far. Atm we're monkey-patching Python's black formatter. If we can use a language agnostic code formatter with Vyper's AST, that could be a great way to resolve https://github.com/vyperlang/blackadder/issues/7. I didn't know these language agnostic formatters were a thing until you mentioned prettier
here.
It'd be great if you can come up with a prettier-vyper
plugin, I think such an approach would make more sense than what we're doing here atm. I probably won't be able to help you out directly but do reach out if you need support
Will try to look into that as soon as possible.
Meanwhile what should I use to parse Vyper code and get the corresponding AST?
Cheers @spinoch
The main function is https://github.com/vyperlang/vyper/blob/master/vyper/ast/utils.py#L10
@eightyfive any progress on this?
Unfortunately not. Still on my list though.
I guess it does not work with the latest vyper version/syntax:
And at line 8:
What's the status of the library ? I am not a python developer myself, but I enjoy vyperlang. I am not sure the best way to help here, I come from JS, where
prettier
is very popular and well integrated everywhere.I'll have a look at how easy is it to implement a
prettier-vyper
plugin for the JS community. I believe a lot of JS devs are tempted by vyperlang but having to switch all tooling can be a blocker.