Add variable assignment

This commit is contained in:
2023-10-31 13:45:00 -07:00
parent ee4aa95dc3
commit 236e178cea
6 changed files with 460 additions and 260 deletions

View File

@@ -90,6 +90,16 @@ func (e Expr) Pos() Position {
return e.Position
}
type Assignment struct {
Name Ident
Value Node
Position Position
}
func (a Assignment) Pos() Position {
return a.Position
}
type FuncCall struct {
Name Ident
Params []Node