cleanup spacing between license and package
This commit is contained in:
parent
a60ff96457
commit
37d3f0205d
|
@ -6,6 +6,7 @@
|
|||
// License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
|
||||
// either express or implied. See the License for the specific language governing permissions
|
||||
// and limitations under the License.
|
||||
|
||||
package bleve
|
||||
|
||||
import (
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
// License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
|
||||
// either express or implied. See the License for the specific language governing permissions
|
||||
// and limitations under the License.
|
||||
|
||||
package bleve
|
||||
|
||||
import (
|
||||
|
|
1
error.go
1
error.go
|
@ -6,6 +6,7 @@
|
|||
// License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
|
||||
// either express or implied. See the License for the specific language governing permissions
|
||||
// and limitations under the License.
|
||||
|
||||
package bleve
|
||||
|
||||
const (
|
||||
|
|
|
@ -4,3 +4,6 @@ echo Running nex...
|
|||
nex query_syntax.nex
|
||||
echo Running goyacc...
|
||||
go tool yacc query_syntax.y
|
||||
# remove first line which pollutes godocs
|
||||
tail -n +2 y.go > y.go.new
|
||||
mv y.go.new y.go
|
||||
|
|
1
index.go
1
index.go
|
@ -6,6 +6,7 @@
|
|||
// License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
|
||||
// either express or implied. See the License for the specific language governing permissions
|
||||
// and limitations under the License.
|
||||
|
||||
package bleve
|
||||
|
||||
import (
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
// License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
|
||||
// either express or implied. See the License for the specific language governing permissions
|
||||
// and limitations under the License.
|
||||
|
||||
package bleve
|
||||
|
||||
import (
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
// License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
|
||||
// either express or implied. See the License for the specific language governing permissions
|
||||
// and limitations under the License.
|
||||
|
||||
package bleve
|
||||
|
||||
import (
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
// License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
|
||||
// either express or implied. See the License for the specific language governing permissions
|
||||
// and limitations under the License.
|
||||
|
||||
package bleve
|
||||
|
||||
import (
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
// License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
|
||||
// either express or implied. See the License for the specific language governing permissions
|
||||
// and limitations under the License.
|
||||
|
||||
package bleve
|
||||
|
||||
import (
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
// License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
|
||||
// either express or implied. See the License for the specific language governing permissions
|
||||
// and limitations under the License.
|
||||
|
||||
package bleve
|
||||
|
||||
import (
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
// License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
|
||||
// either express or implied. See the License for the specific language governing permissions
|
||||
// and limitations under the License.
|
||||
|
||||
package bleve
|
||||
|
||||
import (
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
// License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
|
||||
// either express or implied. See the License for the specific language governing permissions
|
||||
// and limitations under the License.
|
||||
|
||||
package bleve
|
||||
|
||||
import (
|
||||
|
|
1
query.go
1
query.go
|
@ -6,6 +6,7 @@
|
|||
// License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
|
||||
// either express or implied. See the License for the specific language governing permissions
|
||||
// and limitations under the License.
|
||||
|
||||
package bleve
|
||||
|
||||
import (
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
// License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
|
||||
// either express or implied. See the License for the specific language governing permissions
|
||||
// and limitations under the License.
|
||||
|
||||
package bleve
|
||||
|
||||
import (
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
// License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
|
||||
// either express or implied. See the License for the specific language governing permissions
|
||||
// and limitations under the License.
|
||||
|
||||
package bleve
|
||||
|
||||
import (
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
// License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
|
||||
// either express or implied. See the License for the specific language governing permissions
|
||||
// and limitations under the License.
|
||||
|
||||
package bleve
|
||||
|
||||
import (
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
// License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
|
||||
// either express or implied. See the License for the specific language governing permissions
|
||||
// and limitations under the License.
|
||||
|
||||
package bleve
|
||||
|
||||
import (
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
// License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
|
||||
// either express or implied. See the License for the specific language governing permissions
|
||||
// and limitations under the License.
|
||||
|
||||
package bleve
|
||||
|
||||
import (
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
// License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
|
||||
// either express or implied. See the License for the specific language governing permissions
|
||||
// and limitations under the License.
|
||||
|
||||
package bleve
|
||||
|
||||
import (
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
// License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
|
||||
// either express or implied. See the License for the specific language governing permissions
|
||||
// and limitations under the License.
|
||||
|
||||
package bleve
|
||||
|
||||
import (
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
// License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
|
||||
// either express or implied. See the License for the specific language governing permissions
|
||||
// and limitations under the License.
|
||||
|
||||
package bleve
|
||||
|
||||
import (
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
// License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
|
||||
// either express or implied. See the License for the specific language governing permissions
|
||||
// and limitations under the License.
|
||||
|
||||
package bleve
|
||||
|
||||
import (
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
// License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
|
||||
// either express or implied. See the License for the specific language governing permissions
|
||||
// and limitations under the License.
|
||||
|
||||
package bleve
|
||||
|
||||
import (
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
// License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
|
||||
// either express or implied. See the License for the specific language governing permissions
|
||||
// and limitations under the License.
|
||||
|
||||
package bleve
|
||||
|
||||
import (
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
// License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
|
||||
// either express or implied. See the License for the specific language governing permissions
|
||||
// and limitations under the License.
|
||||
|
||||
package bleve
|
||||
|
||||
import (
|
||||
|
|
|
@ -23,17 +23,17 @@ a = make([]family, 1)
|
|||
{
|
||||
var acc [18]bool
|
||||
var fun [18]func(rune) int
|
||||
fun[5] = func(r rune) int {
|
||||
fun[1] = func(r rune) int {
|
||||
switch(r) {
|
||||
case 117: return 2
|
||||
case 110: return 2
|
||||
case 116: return 2
|
||||
case 98: return 2
|
||||
case 34: return 4
|
||||
case 47: return 2
|
||||
case 102: return 2
|
||||
case 92: return 3
|
||||
case 114: return 2
|
||||
case 110: return 2
|
||||
case 34: return 3
|
||||
case 98: return 2
|
||||
case 117: return 2
|
||||
case 47: return 2
|
||||
case 92: return 4
|
||||
case 102: return 2
|
||||
default:
|
||||
switch {
|
||||
case 48 <= r && r <= 57: return 2
|
||||
|
@ -44,22 +44,22 @@ fun[5] = func(r rune) int {
|
|||
}
|
||||
panic("unreachable")
|
||||
}
|
||||
fun[7] = func(r rune) int {
|
||||
fun[6] = func(r rune) int {
|
||||
switch(r) {
|
||||
case 102: return 6
|
||||
case 92: return 7
|
||||
case 114: return 8
|
||||
case 117: return 9
|
||||
case 110: return 10
|
||||
case 116: return 11
|
||||
case 98: return 12
|
||||
case 34: return 13
|
||||
case 47: return 5
|
||||
case 34: return 3
|
||||
case 98: return 14
|
||||
case 117: return 2
|
||||
case 47: return 2
|
||||
case 92: return 4
|
||||
case 102: return 14
|
||||
case 116: return 2
|
||||
case 114: return 2
|
||||
case 110: return 2
|
||||
default:
|
||||
switch {
|
||||
case 48 <= r && r <= 57: return 2
|
||||
case 65 <= r && r <= 70: return 2
|
||||
case 97 <= r && r <= 102: return 2
|
||||
case 48 <= r && r <= 57: return 14
|
||||
case 65 <= r && r <= 70: return 14
|
||||
case 97 <= r && r <= 102: return 14
|
||||
default: return 2
|
||||
}
|
||||
}
|
||||
|
@ -67,15 +67,15 @@ fun[7] = func(r rune) int {
|
|||
}
|
||||
fun[8] = func(r rune) int {
|
||||
switch(r) {
|
||||
case 47: return 2
|
||||
case 102: return 2
|
||||
case 92: return 3
|
||||
case 114: return 2
|
||||
case 117: return 2
|
||||
case 110: return 2
|
||||
case 116: return 2
|
||||
case 98: return 2
|
||||
case 34: return 4
|
||||
case 110: return 12
|
||||
case 34: return 13
|
||||
case 98: return 5
|
||||
case 117: return 6
|
||||
case 47: return 7
|
||||
case 92: return 8
|
||||
case 102: return 9
|
||||
case 116: return 10
|
||||
case 114: return 11
|
||||
default:
|
||||
switch {
|
||||
case 48 <= r && r <= 57: return 2
|
||||
|
@ -88,15 +88,15 @@ fun[8] = func(r rune) int {
|
|||
}
|
||||
fun[11] = func(r rune) int {
|
||||
switch(r) {
|
||||
case 114: return 2
|
||||
case 117: return 2
|
||||
case 110: return 2
|
||||
case 116: return 2
|
||||
case 34: return 3
|
||||
case 98: return 2
|
||||
case 34: return 4
|
||||
case 117: return 2
|
||||
case 47: return 2
|
||||
case 92: return 4
|
||||
case 102: return 2
|
||||
case 92: return 3
|
||||
case 116: return 2
|
||||
case 114: return 2
|
||||
case 110: return 2
|
||||
default:
|
||||
switch {
|
||||
case 48 <= r && r <= 57: return 2
|
||||
|
@ -107,17 +107,38 @@ fun[11] = func(r rune) int {
|
|||
}
|
||||
panic("unreachable")
|
||||
}
|
||||
fun[3] = func(r rune) int {
|
||||
fun[15] = func(r rune) int {
|
||||
switch(r) {
|
||||
case 47: return 5
|
||||
case 102: return 6
|
||||
case 92: return 7
|
||||
case 114: return 8
|
||||
case 117: return 9
|
||||
case 110: return 10
|
||||
case 116: return 11
|
||||
case 98: return 12
|
||||
case 34: return 13
|
||||
case 92: return 4
|
||||
case 102: return 16
|
||||
case 116: return 2
|
||||
case 114: return 2
|
||||
case 110: return 2
|
||||
case 34: return 3
|
||||
case 98: return 16
|
||||
case 117: return 2
|
||||
case 47: return 2
|
||||
default:
|
||||
switch {
|
||||
case 48 <= r && r <= 57: return 16
|
||||
case 65 <= r && r <= 70: return 16
|
||||
case 97 <= r && r <= 102: return 16
|
||||
default: return 2
|
||||
}
|
||||
}
|
||||
panic("unreachable")
|
||||
}
|
||||
fun[10] = func(r rune) int {
|
||||
switch(r) {
|
||||
case 34: return 3
|
||||
case 98: return 2
|
||||
case 117: return 2
|
||||
case 47: return 2
|
||||
case 92: return 4
|
||||
case 102: return 2
|
||||
case 116: return 2
|
||||
case 114: return 2
|
||||
case 110: return 2
|
||||
default:
|
||||
switch {
|
||||
case 48 <= r && r <= 57: return 2
|
||||
|
@ -131,14 +152,14 @@ fun[3] = func(r rune) int {
|
|||
fun[12] = func(r rune) int {
|
||||
switch(r) {
|
||||
case 47: return 2
|
||||
case 92: return 4
|
||||
case 102: return 2
|
||||
case 92: return 3
|
||||
case 114: return 2
|
||||
case 117: return 2
|
||||
case 110: return 2
|
||||
case 116: return 2
|
||||
case 114: return 2
|
||||
case 110: return 2
|
||||
case 34: return 3
|
||||
case 98: return 2
|
||||
case 34: return 4
|
||||
case 117: return 2
|
||||
default:
|
||||
switch {
|
||||
case 48 <= r && r <= 57: return 2
|
||||
|
@ -149,39 +170,17 @@ fun[12] = func(r rune) int {
|
|||
}
|
||||
panic("unreachable")
|
||||
}
|
||||
fun[9] = func(r rune) int {
|
||||
fun[2] = func(r rune) int {
|
||||
switch(r) {
|
||||
case 92: return 3
|
||||
case 114: return 2
|
||||
case 117: return 2
|
||||
case 110: return 2
|
||||
case 116: return 2
|
||||
case 98: return 14
|
||||
case 34: return 4
|
||||
case 47: return 2
|
||||
case 102: return 14
|
||||
default:
|
||||
switch {
|
||||
case 48 <= r && r <= 57: return 14
|
||||
case 65 <= r && r <= 70: return 14
|
||||
case 97 <= r && r <= 102: return 14
|
||||
default: return 2
|
||||
}
|
||||
}
|
||||
panic("unreachable")
|
||||
}
|
||||
acc[13] = true
|
||||
fun[13] = func(r rune) int {
|
||||
switch(r) {
|
||||
case 92: return 3
|
||||
case 114: return 2
|
||||
case 117: return 2
|
||||
case 110: return 2
|
||||
case 116: return 2
|
||||
case 34: return 3
|
||||
case 98: return 2
|
||||
case 34: return 4
|
||||
case 117: return 2
|
||||
case 47: return 2
|
||||
case 92: return 4
|
||||
case 102: return 2
|
||||
case 116: return 2
|
||||
case 114: return 2
|
||||
default:
|
||||
switch {
|
||||
case 48 <= r && r <= 57: return 2
|
||||
|
@ -192,38 +191,59 @@ fun[13] = func(r rune) int {
|
|||
}
|
||||
panic("unreachable")
|
||||
}
|
||||
fun[15] = func(r rune) int {
|
||||
fun[16] = func(r rune) int {
|
||||
switch(r) {
|
||||
case 110: return 2
|
||||
case 92: return 4
|
||||
case 102: return 17
|
||||
case 116: return 2
|
||||
case 98: return 16
|
||||
case 34: return 4
|
||||
case 47: return 2
|
||||
case 102: return 16
|
||||
case 92: return 3
|
||||
case 114: return 2
|
||||
case 110: return 2
|
||||
case 34: return 3
|
||||
case 98: return 17
|
||||
case 117: return 2
|
||||
case 47: return 2
|
||||
default:
|
||||
switch {
|
||||
case 48 <= r && r <= 57: return 16
|
||||
case 65 <= r && r <= 70: return 16
|
||||
case 97 <= r && r <= 102: return 16
|
||||
case 48 <= r && r <= 57: return 17
|
||||
case 65 <= r && r <= 70: return 17
|
||||
case 97 <= r && r <= 102: return 17
|
||||
default: return 2
|
||||
}
|
||||
}
|
||||
panic("unreachable")
|
||||
}
|
||||
fun[6] = func(r rune) int {
|
||||
fun[4] = func(r rune) int {
|
||||
switch(r) {
|
||||
case 98: return 5
|
||||
case 117: return 6
|
||||
case 47: return 7
|
||||
case 92: return 8
|
||||
case 102: return 9
|
||||
case 116: return 10
|
||||
case 114: return 11
|
||||
case 110: return 12
|
||||
case 34: return 13
|
||||
default:
|
||||
switch {
|
||||
case 48 <= r && r <= 57: return 2
|
||||
case 65 <= r && r <= 70: return 2
|
||||
case 97 <= r && r <= 102: return 2
|
||||
default: return 2
|
||||
}
|
||||
}
|
||||
panic("unreachable")
|
||||
}
|
||||
fun[5] = func(r rune) int {
|
||||
switch(r) {
|
||||
case 114: return 2
|
||||
case 117: return 2
|
||||
case 110: return 2
|
||||
case 116: return 2
|
||||
case 98: return 2
|
||||
case 34: return 4
|
||||
case 47: return 2
|
||||
case 102: return 2
|
||||
case 92: return 3
|
||||
case 116: return 2
|
||||
case 114: return 2
|
||||
case 110: return 2
|
||||
case 34: return 3
|
||||
case 98: return 2
|
||||
case 117: return 2
|
||||
case 47: return 2
|
||||
case 92: return 4
|
||||
default:
|
||||
switch {
|
||||
case 48 <= r && r <= 57: return 2
|
||||
|
@ -236,15 +256,58 @@ fun[6] = func(r rune) int {
|
|||
}
|
||||
fun[17] = func(r rune) int {
|
||||
switch(r) {
|
||||
case 117: return 2
|
||||
case 110: return 2
|
||||
case 116: return 2
|
||||
case 98: return 2
|
||||
case 34: return 4
|
||||
case 47: return 2
|
||||
case 92: return 4
|
||||
case 102: return 2
|
||||
case 92: return 3
|
||||
case 116: return 2
|
||||
case 114: return 2
|
||||
case 110: return 2
|
||||
case 34: return 3
|
||||
case 98: return 2
|
||||
case 117: return 2
|
||||
case 47: return 2
|
||||
default:
|
||||
switch {
|
||||
case 48 <= r && r <= 57: return 2
|
||||
case 65 <= r && r <= 70: return 2
|
||||
case 97 <= r && r <= 102: return 2
|
||||
default: return 2
|
||||
}
|
||||
}
|
||||
panic("unreachable")
|
||||
}
|
||||
acc[3] = true
|
||||
fun[3] = func(r rune) int {
|
||||
switch(r) {
|
||||
case 92: return -1
|
||||
case 102: return -1
|
||||
case 116: return -1
|
||||
case 114: return -1
|
||||
case 110: return -1
|
||||
case 34: return -1
|
||||
case 98: return -1
|
||||
case 117: return -1
|
||||
case 47: return -1
|
||||
default:
|
||||
switch {
|
||||
case 48 <= r && r <= 57: return -1
|
||||
case 65 <= r && r <= 70: return -1
|
||||
case 97 <= r && r <= 102: return -1
|
||||
default: return -1
|
||||
}
|
||||
}
|
||||
panic("unreachable")
|
||||
}
|
||||
fun[7] = func(r rune) int {
|
||||
switch(r) {
|
||||
case 116: return 2
|
||||
case 114: return 2
|
||||
case 110: return 2
|
||||
case 34: return 3
|
||||
case 98: return 2
|
||||
case 117: return 2
|
||||
case 47: return 2
|
||||
case 92: return 4
|
||||
case 102: return 2
|
||||
default:
|
||||
switch {
|
||||
case 48 <= r && r <= 57: return 2
|
||||
|
@ -257,15 +320,15 @@ fun[17] = func(r rune) int {
|
|||
}
|
||||
fun[14] = func(r rune) int {
|
||||
switch(r) {
|
||||
case 117: return 2
|
||||
case 110: return 2
|
||||
case 116: return 2
|
||||
case 98: return 15
|
||||
case 34: return 4
|
||||
case 47: return 2
|
||||
case 92: return 4
|
||||
case 102: return 15
|
||||
case 92: return 3
|
||||
case 116: return 2
|
||||
case 114: return 2
|
||||
case 110: return 2
|
||||
case 34: return 3
|
||||
case 98: return 15
|
||||
case 117: return 2
|
||||
default:
|
||||
switch {
|
||||
case 48 <= r && r <= 57: return 15
|
||||
|
@ -276,59 +339,18 @@ fun[14] = func(r rune) int {
|
|||
}
|
||||
panic("unreachable")
|
||||
}
|
||||
fun[2] = func(r rune) int {
|
||||
acc[13] = true
|
||||
fun[13] = func(r rune) int {
|
||||
switch(r) {
|
||||
case 114: return 2
|
||||
case 117: return 2
|
||||
case 110: return 2
|
||||
case 116: return 2
|
||||
case 98: return 2
|
||||
case 34: return 4
|
||||
case 47: return 2
|
||||
case 92: return 4
|
||||
case 102: return 2
|
||||
case 92: return 3
|
||||
default:
|
||||
switch {
|
||||
case 48 <= r && r <= 57: return 2
|
||||
case 65 <= r && r <= 70: return 2
|
||||
case 97 <= r && r <= 102: return 2
|
||||
default: return 2
|
||||
}
|
||||
}
|
||||
panic("unreachable")
|
||||
}
|
||||
fun[10] = func(r rune) int {
|
||||
switch(r) {
|
||||
case 116: return 2
|
||||
case 98: return 2
|
||||
case 34: return 4
|
||||
case 47: return 2
|
||||
case 102: return 2
|
||||
case 92: return 3
|
||||
case 114: return 2
|
||||
case 117: return 2
|
||||
case 110: return 2
|
||||
default:
|
||||
switch {
|
||||
case 48 <= r && r <= 57: return 2
|
||||
case 65 <= r && r <= 70: return 2
|
||||
case 97 <= r && r <= 102: return 2
|
||||
default: return 2
|
||||
}
|
||||
}
|
||||
panic("unreachable")
|
||||
}
|
||||
fun[1] = func(r rune) int {
|
||||
switch(r) {
|
||||
case 47: return 2
|
||||
case 102: return 2
|
||||
case 92: return 3
|
||||
case 114: return 2
|
||||
case 117: return 2
|
||||
case 110: return 2
|
||||
case 116: return 2
|
||||
case 34: return 3
|
||||
case 98: return 2
|
||||
case 34: return 4
|
||||
case 117: return 2
|
||||
case 47: return 2
|
||||
default:
|
||||
switch {
|
||||
case 48 <= r && r <= 57: return 2
|
||||
|
@ -341,37 +363,15 @@ fun[1] = func(r rune) int {
|
|||
}
|
||||
fun[0] = func(r rune) int {
|
||||
switch(r) {
|
||||
case 92: return -1
|
||||
case 114: return -1
|
||||
case 117: return -1
|
||||
case 110: return -1
|
||||
case 47: return -1
|
||||
case 92: return -1
|
||||
case 102: return -1
|
||||
case 116: return -1
|
||||
case 98: return -1
|
||||
case 114: return -1
|
||||
case 110: return -1
|
||||
case 34: return 1
|
||||
case 47: return -1
|
||||
case 102: return -1
|
||||
default:
|
||||
switch {
|
||||
case 48 <= r && r <= 57: return -1
|
||||
case 65 <= r && r <= 70: return -1
|
||||
case 97 <= r && r <= 102: return -1
|
||||
default: return -1
|
||||
}
|
||||
}
|
||||
panic("unreachable")
|
||||
}
|
||||
acc[4] = true
|
||||
fun[4] = func(r rune) int {
|
||||
switch(r) {
|
||||
case 117: return -1
|
||||
case 110: return -1
|
||||
case 116: return -1
|
||||
case 98: return -1
|
||||
case 34: return -1
|
||||
case 47: return -1
|
||||
case 102: return -1
|
||||
case 92: return -1
|
||||
case 114: return -1
|
||||
default:
|
||||
switch {
|
||||
case 48 <= r && r <= 57: return -1
|
||||
|
@ -382,22 +382,22 @@ fun[4] = func(r rune) int {
|
|||
}
|
||||
panic("unreachable")
|
||||
}
|
||||
fun[16] = func(r rune) int {
|
||||
fun[9] = func(r rune) int {
|
||||
switch(r) {
|
||||
case 117: return 2
|
||||
case 110: return 2
|
||||
case 116: return 2
|
||||
case 98: return 17
|
||||
case 34: return 4
|
||||
case 47: return 2
|
||||
case 102: return 17
|
||||
case 92: return 3
|
||||
case 92: return 4
|
||||
case 102: return 2
|
||||
case 116: return 2
|
||||
case 114: return 2
|
||||
case 110: return 2
|
||||
case 34: return 3
|
||||
case 98: return 2
|
||||
case 117: return 2
|
||||
default:
|
||||
switch {
|
||||
case 48 <= r && r <= 57: return 17
|
||||
case 65 <= r && r <= 70: return 17
|
||||
case 97 <= r && r <= 102: return 17
|
||||
case 48 <= r && r <= 57: return 2
|
||||
case 65 <= r && r <= 70: return 2
|
||||
case 97 <= r && r <= 102: return 2
|
||||
default: return 2
|
||||
}
|
||||
}
|
||||
|
@ -438,9 +438,10 @@ a0[1].id = 1
|
|||
{
|
||||
var acc [2]bool
|
||||
var fun [2]func(rune) int
|
||||
fun[0] = func(r rune) int {
|
||||
acc[1] = true
|
||||
fun[1] = func(r rune) int {
|
||||
switch(r) {
|
||||
case 45: return 1
|
||||
case 45: return -1
|
||||
default:
|
||||
switch {
|
||||
default: return -1
|
||||
|
@ -448,10 +449,9 @@ fun[0] = func(r rune) int {
|
|||
}
|
||||
panic("unreachable")
|
||||
}
|
||||
acc[1] = true
|
||||
fun[1] = func(r rune) int {
|
||||
fun[0] = func(r rune) int {
|
||||
switch(r) {
|
||||
case 45: return -1
|
||||
case 45: return 1
|
||||
default:
|
||||
switch {
|
||||
default: return -1
|
||||
|
@ -494,9 +494,10 @@ a0[3].id = 3
|
|||
{
|
||||
var acc [2]bool
|
||||
var fun [2]func(rune) int
|
||||
fun[0] = func(r rune) int {
|
||||
acc[1] = true
|
||||
fun[1] = func(r rune) int {
|
||||
switch(r) {
|
||||
case 94: return 1
|
||||
case 94: return -1
|
||||
default:
|
||||
switch {
|
||||
default: return -1
|
||||
|
@ -504,10 +505,9 @@ fun[0] = func(r rune) int {
|
|||
}
|
||||
panic("unreachable")
|
||||
}
|
||||
acc[1] = true
|
||||
fun[1] = func(r rune) int {
|
||||
fun[0] = func(r rune) int {
|
||||
switch(r) {
|
||||
case 94: return -1
|
||||
case 94: return 1
|
||||
default:
|
||||
switch {
|
||||
default: return -1
|
||||
|
@ -522,10 +522,9 @@ a0[4].id = 4
|
|||
{
|
||||
var acc [2]bool
|
||||
var fun [2]func(rune) int
|
||||
acc[1] = true
|
||||
fun[1] = func(r rune) int {
|
||||
fun[0] = func(r rune) int {
|
||||
switch(r) {
|
||||
case 40: return -1
|
||||
case 40: return 1
|
||||
default:
|
||||
switch {
|
||||
default: return -1
|
||||
|
@ -533,9 +532,10 @@ fun[1] = func(r rune) int {
|
|||
}
|
||||
panic("unreachable")
|
||||
}
|
||||
fun[0] = func(r rune) int {
|
||||
acc[1] = true
|
||||
fun[1] = func(r rune) int {
|
||||
switch(r) {
|
||||
case 40: return 1
|
||||
case 40: return -1
|
||||
default:
|
||||
switch {
|
||||
default: return -1
|
||||
|
@ -606,9 +606,10 @@ a0[7].id = 7
|
|||
{
|
||||
var acc [2]bool
|
||||
var fun [2]func(rune) int
|
||||
fun[0] = func(r rune) int {
|
||||
acc[1] = true
|
||||
fun[1] = func(r rune) int {
|
||||
switch(r) {
|
||||
case 60: return 1
|
||||
case 60: return -1
|
||||
default:
|
||||
switch {
|
||||
default: return -1
|
||||
|
@ -616,10 +617,9 @@ fun[0] = func(r rune) int {
|
|||
}
|
||||
panic("unreachable")
|
||||
}
|
||||
acc[1] = true
|
||||
fun[1] = func(r rune) int {
|
||||
fun[0] = func(r rune) int {
|
||||
switch(r) {
|
||||
case 60: return -1
|
||||
case 60: return 1
|
||||
default:
|
||||
switch {
|
||||
default: return -1
|
||||
|
@ -662,11 +662,38 @@ a0[9].id = 9
|
|||
{
|
||||
var acc [8]bool
|
||||
var fun [8]func(rune) int
|
||||
acc[6] = true
|
||||
fun[6] = func(r rune) int {
|
||||
acc[3] = true
|
||||
fun[3] = func(r rune) int {
|
||||
switch(r) {
|
||||
case 46: return -1
|
||||
case 45: return -1
|
||||
case 46: return 4
|
||||
default:
|
||||
switch {
|
||||
case 48 <= r && r <= 48: return 5
|
||||
case 49 <= r && r <= 57: return 5
|
||||
default: return -1
|
||||
}
|
||||
}
|
||||
panic("unreachable")
|
||||
}
|
||||
fun[0] = func(r rune) int {
|
||||
switch(r) {
|
||||
case 45: return 1
|
||||
case 46: return -1
|
||||
default:
|
||||
switch {
|
||||
case 48 <= r && r <= 48: return 2
|
||||
case 49 <= r && r <= 57: return 3
|
||||
default: return -1
|
||||
}
|
||||
}
|
||||
panic("unreachable")
|
||||
}
|
||||
acc[7] = true
|
||||
fun[7] = func(r rune) int {
|
||||
switch(r) {
|
||||
case 45: return -1
|
||||
case 46: return -1
|
||||
default:
|
||||
switch {
|
||||
case 48 <= r && r <= 48: return 7
|
||||
|
@ -676,8 +703,35 @@ fun[6] = func(r rune) int {
|
|||
}
|
||||
panic("unreachable")
|
||||
}
|
||||
acc[7] = true
|
||||
fun[7] = func(r rune) int {
|
||||
acc[2] = true
|
||||
fun[2] = func(r rune) int {
|
||||
switch(r) {
|
||||
case 46: return 4
|
||||
case 45: return -1
|
||||
default:
|
||||
switch {
|
||||
case 48 <= r && r <= 48: return -1
|
||||
case 49 <= r && r <= 57: return -1
|
||||
default: return -1
|
||||
}
|
||||
}
|
||||
panic("unreachable")
|
||||
}
|
||||
fun[1] = func(r rune) int {
|
||||
switch(r) {
|
||||
case 46: return -1
|
||||
case 45: return -1
|
||||
default:
|
||||
switch {
|
||||
case 48 <= r && r <= 48: return 2
|
||||
case 49 <= r && r <= 57: return 3
|
||||
default: return -1
|
||||
}
|
||||
}
|
||||
panic("unreachable")
|
||||
}
|
||||
acc[6] = true
|
||||
fun[6] = func(r rune) int {
|
||||
switch(r) {
|
||||
case 46: return -1
|
||||
case 45: return -1
|
||||
|
@ -703,52 +757,11 @@ fun[4] = func(r rune) int {
|
|||
}
|
||||
panic("unreachable")
|
||||
}
|
||||
acc[3] = true
|
||||
fun[3] = func(r rune) int {
|
||||
switch(r) {
|
||||
case 46: return 4
|
||||
case 45: return -1
|
||||
default:
|
||||
switch {
|
||||
case 48 <= r && r <= 48: return 5
|
||||
case 49 <= r && r <= 57: return 5
|
||||
default: return -1
|
||||
}
|
||||
}
|
||||
panic("unreachable")
|
||||
}
|
||||
fun[1] = func(r rune) int {
|
||||
switch(r) {
|
||||
case 46: return -1
|
||||
case 45: return -1
|
||||
default:
|
||||
switch {
|
||||
case 48 <= r && r <= 48: return 2
|
||||
case 49 <= r && r <= 57: return 3
|
||||
default: return -1
|
||||
}
|
||||
}
|
||||
panic("unreachable")
|
||||
}
|
||||
acc[2] = true
|
||||
fun[2] = func(r rune) int {
|
||||
switch(r) {
|
||||
case 46: return 4
|
||||
case 45: return -1
|
||||
default:
|
||||
switch {
|
||||
case 48 <= r && r <= 48: return -1
|
||||
case 49 <= r && r <= 57: return -1
|
||||
default: return -1
|
||||
}
|
||||
}
|
||||
panic("unreachable")
|
||||
}
|
||||
acc[5] = true
|
||||
fun[5] = func(r rune) int {
|
||||
switch(r) {
|
||||
case 46: return 4
|
||||
case 45: return -1
|
||||
case 46: return 4
|
||||
default:
|
||||
switch {
|
||||
case 48 <= r && r <= 48: return 5
|
||||
|
@ -758,19 +771,6 @@ fun[5] = func(r rune) int {
|
|||
}
|
||||
panic("unreachable")
|
||||
}
|
||||
fun[0] = func(r rune) int {
|
||||
switch(r) {
|
||||
case 46: return -1
|
||||
case 45: return 1
|
||||
default:
|
||||
switch {
|
||||
case 48 <= r && r <= 48: return 2
|
||||
case 49 <= r && r <= 57: return 3
|
||||
default: return -1
|
||||
}
|
||||
}
|
||||
panic("unreachable")
|
||||
}
|
||||
a0[10].acc = acc[:]
|
||||
a0[10].f = fun[:]
|
||||
a0[10].id = 10
|
||||
|
@ -782,8 +782,8 @@ acc[1] = true
|
|||
fun[1] = func(r rune) int {
|
||||
switch(r) {
|
||||
case 10: return 1
|
||||
case 32: return 1
|
||||
case 9: return 1
|
||||
case 32: return 1
|
||||
default:
|
||||
switch {
|
||||
default: return -1
|
||||
|
@ -794,8 +794,8 @@ fun[1] = func(r rune) int {
|
|||
fun[0] = func(r rune) int {
|
||||
switch(r) {
|
||||
case 10: return 1
|
||||
case 32: return 1
|
||||
case 9: return 1
|
||||
case 32: return 1
|
||||
default:
|
||||
switch {
|
||||
default: return -1
|
||||
|
@ -810,21 +810,20 @@ a0[11].id = 11
|
|||
{
|
||||
var acc [2]bool
|
||||
var fun [2]func(rune) int
|
||||
acc[1] = true
|
||||
fun[1] = func(r rune) int {
|
||||
fun[0] = func(r rune) int {
|
||||
switch(r) {
|
||||
case 10: return -1
|
||||
case 9: return -1
|
||||
case 60: return -1
|
||||
case 43: return -1
|
||||
case 45: return -1
|
||||
case 94: return -1
|
||||
case 13: return -1
|
||||
case 9: return -1
|
||||
case 62: return -1
|
||||
case 61: return -1
|
||||
case 12: return -1
|
||||
case 13: return -1
|
||||
case 32: return -1
|
||||
case 94: return -1
|
||||
case 58: return -1
|
||||
case 10: return -1
|
||||
case 43: return -1
|
||||
case 45: return -1
|
||||
default:
|
||||
switch {
|
||||
default: return 1
|
||||
|
@ -832,20 +831,21 @@ fun[1] = func(r rune) int {
|
|||
}
|
||||
panic("unreachable")
|
||||
}
|
||||
fun[0] = func(r rune) int {
|
||||
acc[1] = true
|
||||
fun[1] = func(r rune) int {
|
||||
switch(r) {
|
||||
case 10: return -1
|
||||
case 9: return -1
|
||||
case 60: return -1
|
||||
case 43: return -1
|
||||
case 45: return -1
|
||||
case 94: return -1
|
||||
case 13: return -1
|
||||
case 62: return -1
|
||||
case 61: return -1
|
||||
case 12: return -1
|
||||
case 13: return -1
|
||||
case 32: return -1
|
||||
case 94: return -1
|
||||
case 58: return -1
|
||||
case 10: return -1
|
||||
case 43: return -1
|
||||
case 45: return -1
|
||||
case 60: return -1
|
||||
case 9: return -1
|
||||
default:
|
||||
switch {
|
||||
default: return 1
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
// License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
|
||||
// either express or implied. See the License for the specific language governing permissions
|
||||
// and limitations under the License.
|
||||
|
||||
package bleve
|
||||
|
||||
import (
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
// License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
|
||||
// either express or implied. See the License for the specific language governing permissions
|
||||
// and limitations under the License.
|
||||
|
||||
package bleve
|
||||
|
||||
import (
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
// License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
|
||||
// either express or implied. See the License for the specific language governing permissions
|
||||
// and limitations under the License.
|
||||
|
||||
package bleve
|
||||
|
||||
import (
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
// License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
|
||||
// either express or implied. See the License for the specific language governing permissions
|
||||
// and limitations under the License.
|
||||
|
||||
package bleve
|
||||
|
||||
import (
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
// License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
|
||||
// either express or implied. See the License for the specific language governing permissions
|
||||
// and limitations under the License.
|
||||
|
||||
package bleve
|
||||
|
||||
import (
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
// License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
|
||||
// either express or implied. See the License for the specific language governing permissions
|
||||
// and limitations under the License.
|
||||
|
||||
package bleve
|
||||
|
||||
import (
|
||||
|
|
Loading…
Reference in New Issue