bool functions retrofitted for eval change

This commit is contained in:
Aidan 2020-06-29 12:26:01 -07:00
parent 2151b6c5d2
commit f3e39e156c
No known key found for this signature in database
GPG key ID: 327711E983899316
3 changed files with 230 additions and 0 deletions

View file

@ -130,6 +130,17 @@ func (t *Token) FmtToken() string {
}
}
/* Sets the string value for a non-list token
*/
func (t *Token) Set(arg string) bool {
if t.Tag == LIST {
return false
}
t.inner = arg
return true
}
/* Returns a tag in text
*/
func GetTagAsStr(tag Token_t) string {