boolean system
This commit is contained in:
parent
e7d25057f6
commit
89d6a1013b
5 changed files with 209 additions and 1 deletions
|
|
@ -30,7 +30,7 @@ func (t *Token) String() string {
|
|||
case STRING:
|
||||
return "\"" + t.Inner.(string) + "\""
|
||||
|
||||
case NUMBER:
|
||||
case NUMBER, BOOL:
|
||||
return t.Inner.(string)
|
||||
|
||||
case LIST:
|
||||
|
|
|
|||
|
|
@ -28,6 +28,7 @@ const (
|
|||
STRING Token_t = iota
|
||||
NUMBER Token_t = iota
|
||||
SYMBOL Token_t = iota
|
||||
BOOL Token_t = iota
|
||||
)
|
||||
|
||||
type Token struct {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue