More tree changes

This commit is contained in:
2022-09-27 14:17:03 -04:00
parent edd4b39642
commit c4101dcd33
3 changed files with 31 additions and 23 deletions

View File

@@ -82,6 +82,12 @@ type Declaration struct {
typeable
}
// List represents an array or object literal.
type List struct {
locatable
multiValuable
}
// ArgumentKind specifies the type of thing the value of an argument should be
// cast to.
type ArgumentKind int
@@ -94,6 +100,9 @@ const (
// etc...
ArgumentKindPhrase
// (argument argument argument)
ArgumentKindList
// {name}
ArgumentKindDereference
@@ -221,8 +230,8 @@ const (
type Phrase struct {
location file.Location
command Argument
arguments []Argument
returnees []Argument
multiValuable
kind PhraseKind