Add nil keyword

This commit is contained in:
2024-06-06 19:06:16 -07:00
parent f1a998c25b
commit 130aa66124
6 changed files with 342 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