You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi I was wondering how we could create the ast statements for functions such as if or else and while ? I have gotten a certain amount of it but would love some clarification. Thank you
The text was updated successfully, but these errors were encountered:
So if, else and while are statements, not functions, but yes you can create nodes for each of them in the AST. These could even share some code, because they might have a lot of things in common, in which case you can create a general Statement node that these statements can inherit from.
Hi I was wondering how we could create the ast statements for functions such as if or else and while ? I have gotten a certain amount of it but would love some clarification. Thank you
The text was updated successfully, but these errors were encountered: