diff --git a/parser/accessors.go b/parser/accessors.go index 7af447d..8e92889 100644 --- a/parser/accessors.go +++ b/parser/accessors.go @@ -191,6 +191,12 @@ func (section DataSection) External () (external bool) { return } +// Command returns the phrase's command. +func (phrase Phrase) Command () (command Argument) { + command = phrase.command + return +} + // Kind returns what kind of phrase it is. func (phrase Phrase) Kind () (kind PhraseKind) { kind = phrase.kind diff --git a/parser/tree.go b/parser/tree.go index 9f0e6d4..a41bc53 100644 --- a/parser/tree.go +++ b/parser/tree.go @@ -283,8 +283,6 @@ type Phrase struct { kind PhraseKind - // TODO: do not have this be an argument. make a string version, and - // and identifier version. command Argument // only applicable for PhraseKindOperator