bool functions retrofitted for eval change
This commit is contained in:
parent
2151b6c5d2
commit
f3e39e156c
3 changed files with 230 additions and 0 deletions
11
ast/token.go
11
ast/token.go
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue