Skip to content

Commit

Permalink
Merge pull request #197 from andyyang890/replace_wkt_parser
Browse files Browse the repository at this point in the history
encoding/wkt: replace wkt parser with goyacc parser
  • Loading branch information
twpayne authored May 2, 2021
2 parents 7ecd25f + ff62ef7 commit f26377c
Show file tree
Hide file tree
Showing 11 changed files with 3,860 additions and 393 deletions.
1 change: 1 addition & 0 deletions encoding/wkt/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
y.output
379 changes: 0 additions & 379 deletions encoding/wkt/decode.go

This file was deleted.

7 changes: 7 additions & 0 deletions encoding/wkt/generate.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh
set -eux

goyacc -o wkt_generated.go -p "wkt" wkt.y
# TODO replace this script if https://github.com/golang/tools/pull/304 is accepted
cat wkt_generated.go | sed -e 's/wktErrorVerbose = false/wktErrorVerbose = true/' > wkt_generated.go.tmp
mv wkt_generated.go.tmp wkt_generated.go
Loading

0 comments on commit f26377c

Please sign in to comment.