Skip to content

Commit

Permalink
sql/parser: YACC compilation fails on all conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
nvanbenschoten committed Jun 6, 2016
1 parent 5f504b5 commit 39ce7de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sql/parser/sql_union.sh
Expand Up @@ -10,7 +10,7 @@ set -eu
# to union type accessors in the Go code within rules, as the YACC
# compiler does not type check Go code.
function type_check() {
go tool yacc -o /dev/null -p sql sql.y
! go tool yacc -o /dev/null -p sql sql.y | grep -F 'conflicts'
}

# This step performs the actual compilation from the sql.y syntax to
Expand Down Expand Up @@ -42,7 +42,7 @@ function compile() {

# Compile this new "unionized" syntax file through YACC, this time writing
# the output to sql.go.
go tool yacc -o sql.go -p sql sql.y
! go tool yacc -o sql.go -p sql sql.y | grep -F 'conflicts'

# Overwrite the migrated syntax file with the original syntax file.
mv sql.y.tmp sql.y
Expand Down

0 comments on commit 39ce7de

Please sign in to comment.