2015-01-11 21:38:45 +01:00
|
|
|
package ast
|
|
|
|
|
|
|
|
// Node is the interface that all AST nodes must implement.
|
|
|
|
type Node interface{}
|
|
|
|
|
2015-01-11 23:35:14 +01:00
|
|
|
//go:generate stringer -type=Type
|
|
|
|
|
2015-01-11 21:38:45 +01:00
|
|
|
// Type is the type of a literal.
|
|
|
|
type Type uint
|
|
|
|
|
|
|
|
const (
|
|
|
|
TypeInvalid Type = 1 << iota
|
|
|
|
TypeString
|
|
|
|
)
|