integrate environment variables with vartable

This commit is contained in:
Aidan 2020-06-26 21:17:18 -07:00
parent 9301c77573
commit 7c04e3de95
No known key found for this signature in database
GPG key ID: 327711E983899316
4 changed files with 57 additions and 4 deletions

View file

@ -68,7 +68,7 @@ func Lex(input string) *Token {
(*iter).Tag = STRING
is_str = false
} else if tokenIsNumber(tok) {
} else if StrIsNumber(tok) {
(*iter).Tag = NUMBER
} else {
@ -181,7 +181,7 @@ error:
return nil
}
func tokenIsNumber(arg string) bool {
func StrIsNumber(arg string) bool {
dotCount := 0
for _, char := range arg {
@ -196,3 +196,4 @@ func tokenIsNumber(arg string) bool {
return true
}