This is copied directly from https://github.com/youtube/vitess/tree/master/go/vt/sqlparser with just a few modifications to make it work as a standalone repo.
Unless otherwise noted, the vitess source files are distributed under the BSD-style license found in the LICENSE file.