Skip to content

Commit 87fca4d

Browse files
committed
deal with floats
'+' and '-' are more flexible ops
1 parent 7bad007 commit 87fca4d

File tree

6 files changed

+318
-213
lines changed

6 files changed

+318
-213
lines changed

sql/lexer.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ func (l *lexer) Lex(lval *yySymType) int {
1919

2020
lval.identifier = tok.s
2121
lval.signedNumber = tok.n
22+
lval.float = tok.f
2223
return tok.typ
2324
}
2425

0 commit comments

Comments
 (0)