integrate environment variables with vartable
This commit is contained in:
parent
9301c77573
commit
7c04e3de95
4 changed files with 57 additions and 4 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue