-
Notifications
You must be signed in to change notification settings - Fork 65
Implement Vyper AST #291
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
base: main
Are you sure you want to change the base?
Implement Vyper AST #291
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cool,
how complete is that?
@mattsse almost ready, just missing the |
source_sha256sum: Option<String>, | ||
name: Option<String>, | ||
path: Option<String>, | ||
resolved_path: Option<String>, | ||
source_id: Option<i32>, | ||
is_interface: Option<bool>, | ||
doc_string: Option<DocStr>, | ||
settings: Option<Settings>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't have all of these Option
in latest Vyper versions, this is from old ones which didn't had much information in the module AST node.
RShift, | ||
); | ||
|
||
basic_vyper_nodes!(Add, Sub, Mult, Div, FloorDiv, Mod, Pow, BitAnd, BitOr, BitXor, LShift, RShift); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is less verbose than writing
vyper_node!(struct Add {});
vyper_nodes!(strutc Sub {});
vyper_nodes!(struct Mult);
// ...
It's gonna need some more work because old versions are missing a bunch of fields, it looks okay for >=0.4.0 though. |
TODO