Add nil keyword

This commit is contained in:
2024-06-06 19:06:45 -07:00
parent f1a998c25b
commit d5c33f9e5d
5 changed files with 340 additions and 295 deletions

View File

@@ -20,6 +20,14 @@ func (p Position) String() string {
return fmt.Sprintf("%s: line %d, col %d", p.Name, p.Line, p.Col)
}
type Nil struct {
Position Position
}
func (n Nil) Pos() Position {
return n.Position
}
type Tag struct {
Name Ident
Params []Node