Skip to content

Commit

Permalink
change to make generated lexer private
Browse files Browse the repository at this point in the history
  • Loading branch information
mschoch committed Aug 30, 2014
1 parent 5f4ea4d commit 85b21f8
Show file tree
Hide file tree
Showing 3 changed files with 341 additions and 337 deletions.
4 changes: 4 additions & 0 deletions genparser.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@ go tool yacc query_string.y
# remove first line which pollutes godocs
tail -n +2 y.go > y.go.new
mv y.go.new y.go
# change public Lexer to private lexer
sed -i '' -e 's/Lexer/lexer/g' query_string.nn.go
sed -i '' -e 's/Newlexer/newLexer/g' query_string.nn.go
sed -i '' -e 's/debuglexer/debugLexer/g' query_string.nn.go
Loading

0 comments on commit 85b21f8

Please sign in to comment.