Skip to content

Commit

Permalink
Upgrade lexer (eatonphil#2)
Browse files Browse the repository at this point in the history
* Use cursor-style lexer with full control

* Some progress

* Fixes for tests

* Add tests for case preservation
  • Loading branch information
eatonphil authored Mar 14, 2020
1 parent b1e42e0 commit d0aec47
Show file tree
Hide file tree
Showing 5 changed files with 522 additions and 175 deletions.
5 changes: 1 addition & 4 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package main

import (
"bufio"
"bytes"
"fmt"
"os"
"strings"
Expand All @@ -20,9 +19,7 @@ func main() {
text, err := reader.ReadString('\n')
text = strings.Replace(text, "\n", "", -1)

source := bytes.NewBufferString(text)

ast, err := gosql.Parse(source)
ast, err := gosql.Parse(text)
if err != nil {
panic(err)
}
Expand Down
Loading

0 comments on commit d0aec47

Please sign in to comment.