13 lines
198 B
Go
13 lines
198 B
Go
|
package ast
|
||
|
|
||
|
// Node is the interface that all AST nodes must implement.
|
||
|
type Node interface{}
|
||
|
|
||
|
// Type is the type of a literal.
|
||
|
type Type uint
|
||
|
|
||
|
const (
|
||
|
TypeInvalid Type = 1 << iota
|
||
|
TypeString
|
||
|
)
|