Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Open sidebar
gogna
gnparser
Commits
8a01b701
Commit
8a01b701
authored
Dec 14, 2020
by
Dmitry Mozzherin
Browse files
Close
#96
"Candidatus" names are noparse
parent
fb9a4895
Pipeline
#229632849
passed with stages
in 3 minutes and 37 seconds
Changes
4
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
442 additions
and
156 deletions
+442
-156
preprocess/noparse.go
preprocess/noparse.go
+431
-152
preprocess/noparse.rl
preprocess/noparse.rl
+1
-1
preprocess/preprocess.go
preprocess/preprocess.go
+0
-3
testdata/test_data.txt
testdata/test_data.txt
+10
-0
No files found.
preprocess/noparse.go
View file @
8a01b701
...
...
@@ -7,7 +7,7 @@ func NoParse(data []byte) bool {
//line noparse.go:9
const
noparse_start
int
=
0
const
noparse_first_final
int
=
73
const
noparse_first_final
int
=
82
const
noparse_error
int
=
-
1
const
noparse_en_main
int
=
0
...
...
@@ -57,16 +57,16 @@ const noparse_en_main int = 0
goto
st_case_8
case
9
:
goto
st_case_9
case
73
:
goto
st_case_
73
case
82
:
goto
st_case_
82
case
10
:
goto
st_case_10
case
11
:
goto
st_case_11
case
12
:
goto
st_case_12
case
74
:
goto
st_case_
74
case
83
:
goto
st_case_
83
case
13
:
goto
st_case_13
case
14
:
...
...
@@ -75,8 +75,8 @@ const noparse_en_main int = 0
goto
st_case_15
case
16
:
goto
st_case_16
case
75
:
goto
st_case_
75
case
84
:
goto
st_case_
84
case
17
:
goto
st_case_17
case
18
:
...
...
@@ -107,8 +107,8 @@ const noparse_en_main int = 0
goto
st_case_30
case
31
:
goto
st_case_31
case
76
:
goto
st_case_
76
case
85
:
goto
st_case_
85
case
32
:
goto
st_case_32
case
33
:
...
...
@@ -191,18 +191,38 @@ const noparse_en_main int = 0
goto
st_case_71
case
72
:
goto
st_case_72
case
73
:
goto
st_case_73
case
74
:
goto
st_case_74
case
75
:
goto
st_case_75
case
76
:
goto
st_case_76
case
77
:
goto
st_case_77
case
78
:
goto
st_case_78
case
79
:
goto
st_case_79
case
80
:
goto
st_case_80
case
81
:
goto
st_case_81
}
goto
st_out
st_case_0
:
switch
data
[
p
]
{
case
32
:
goto
st2
case
67
:
goto
st56
case
73
:
goto
st4
case
78
:
goto
st
5
6
goto
st6
5
case
85
:
goto
st
59
goto
st
68
case
105
:
goto
st5
case
112
:
...
...
@@ -417,10 +437,10 @@ const noparse_en_main int = 0
switch
{
case
data
[
p
]
>
13
:
if
32
<=
data
[
p
]
&&
data
[
p
]
<=
47
{
goto
tr1
4
goto
tr1
5
}
case
data
[
p
]
>=
9
:
goto
tr1
4
goto
tr1
5
}
case
data
[
p
]
>
64
:
switch
{
...
...
@@ -430,13 +450,13 @@ const noparse_en_main int = 0
}
case
data
[
p
]
>
96
:
if
123
<=
data
[
p
]
&&
data
[
p
]
<=
126
{
goto
tr1
4
goto
tr1
5
}
default
:
goto
tr1
4
goto
tr1
5
}
default
:
goto
tr1
4
goto
tr1
5
}
goto
st9
st9
:
...
...
@@ -457,10 +477,10 @@ const noparse_en_main int = 0
switch
{
case
data
[
p
]
>
13
:
if
32
<=
data
[
p
]
&&
data
[
p
]
<=
47
{
goto
tr1
4
goto
tr1
5
}
case
data
[
p
]
>=
9
:
goto
tr1
4
goto
tr1
5
}
case
data
[
p
]
>
64
:
switch
{
...
...
@@ -470,25 +490,25 @@ const noparse_en_main int = 0
}
case
data
[
p
]
>
96
:
if
123
<=
data
[
p
]
&&
data
[
p
]
<=
126
{
goto
tr1
4
goto
tr1
5
}
default
:
goto
tr1
4
goto
tr1
5
}
default
:
goto
tr1
4
goto
tr1
5
}
goto
st9
tr1
4
:
tr1
5
:
//line noparse.rl:20
match
=
true
goto
st
73
st
73
:
goto
st
82
st
82
:
if
p
++
;
p
==
pe
{
goto
_test_eof
73
goto
_test_eof
82
}
st_case_
73
:
//line noparse.go:
49
2
st_case_
82
:
//line noparse.go:
51
2
switch
data
[
p
]
{
case
73
:
goto
st4
...
...
@@ -502,10 +522,10 @@ match = true
switch
{
case
data
[
p
]
>
13
:
if
32
<=
data
[
p
]
&&
data
[
p
]
<=
47
{
goto
tr1
4
goto
tr1
5
}
case
data
[
p
]
>=
9
:
goto
tr1
4
goto
tr1
5
}
case
data
[
p
]
>
64
:
switch
{
...
...
@@ -515,13 +535,13 @@ match = true
}
case
data
[
p
]
>
96
:
if
123
<=
data
[
p
]
&&
data
[
p
]
<=
126
{
goto
tr1
4
goto
tr1
5
}
default
:
goto
tr1
4
goto
tr1
5
}
default
:
goto
tr1
4
goto
tr1
5
}
goto
st9
st10
:
...
...
@@ -544,10 +564,10 @@ match = true
switch
{
case
data
[
p
]
>
13
:
if
32
<=
data
[
p
]
&&
data
[
p
]
<=
47
{
goto
tr1
4
goto
tr1
5
}
case
data
[
p
]
>=
9
:
goto
tr1
4
goto
tr1
5
}
case
data
[
p
]
>
64
:
switch
{
...
...
@@ -557,13 +577,13 @@ match = true
}
case
data
[
p
]
>
96
:
if
123
<=
data
[
p
]
&&
data
[
p
]
<=
126
{
goto
tr1
4
goto
tr1
5
}
default
:
goto
tr1
4
goto
tr1
5
}
default
:
goto
tr1
4
goto
tr1
5
}
goto
st9
st11
:
...
...
@@ -586,10 +606,10 @@ match = true
switch
{
case
data
[
p
]
>
13
:
if
32
<=
data
[
p
]
&&
data
[
p
]
<=
47
{
goto
tr1
4
goto
tr1
5
}
case
data
[
p
]
>=
9
:
goto
tr1
4
goto
tr1
5
}
case
data
[
p
]
>
64
:
switch
{
...
...
@@ -599,13 +619,13 @@ match = true
}
case
data
[
p
]
>
96
:
if
123
<=
data
[
p
]
&&
data
[
p
]
<=
126
{
goto
tr1
4
goto
tr1
5
}
default
:
goto
tr1
4
goto
tr1
5
}
default
:
goto
tr1
4
goto
tr1
5
}
goto
st9
st12
:
...
...
@@ -615,7 +635,7 @@ match = true
st_case_12
:
switch
data
[
p
]
{
case
46
:
goto
tr1
8
goto
tr1
9
case
73
:
goto
st4
case
82
:
...
...
@@ -630,10 +650,10 @@ match = true
switch
{
case
data
[
p
]
>
13
:
if
32
<=
data
[
p
]
&&
data
[
p
]
<=
47
{
goto
tr1
4
goto
tr1
5
}
case
data
[
p
]
>=
9
:
goto
tr1
4
goto
tr1
5
}
case
data
[
p
]
>
64
:
switch
{
...
...
@@ -643,28 +663,28 @@ match = true
}
case
data
[
p
]
>
96
:
if
123
<=
data
[
p
]
&&
data
[
p
]
<=
126
{
goto
tr1
4
goto
tr1
5
}
default
:
goto
tr1
4
goto
tr1
5
}
default
:
goto
tr1
4
goto
tr1
5
}
goto
st9
tr1
8
:
tr1
9
:
//line noparse.rl:20
match
=
true
goto
st
74
st
74
:
goto
st
83
st
83
:
if
p
++
;
p
==
pe
{
goto
_test_eof
74
goto
_test_eof
83
}
st_case_
74
:
//line noparse.go:6
6
5
st_case_
83
:
//line noparse.go:6
8
5
switch
data
[
p
]
{
case
32
:
goto
tr1
8
goto
tr1
9
case
73
:
goto
st4
case
82
:
...
...
@@ -679,10 +699,10 @@ match = true
switch
{
case
data
[
p
]
>
13
:
if
33
<=
data
[
p
]
&&
data
[
p
]
<=
47
{
goto
tr1
4
goto
tr1
5
}
case
data
[
p
]
>=
9
:
goto
tr1
8
goto
tr1
9
}
case
data
[
p
]
>
64
:
switch
{
...
...
@@ -692,13 +712,13 @@ match = true
}
case
data
[
p
]
>
96
:
if
123
<=
data
[
p
]
&&
data
[
p
]
<=
126
{
goto
tr1
4
goto
tr1
5
}
default
:
goto
tr1
4
goto
tr1
5
}
default
:
goto
tr1
4
goto
tr1
5
}
goto
st9
st13
:
...
...
@@ -790,7 +810,7 @@ match = true
st_case_16
:
switch
data
[
p
]
{
case
32
:
goto
tr2
4
goto
tr2
5
case
73
:
goto
st4
case
82
:
...
...
@@ -805,10 +825,10 @@ match = true
switch
{
case
data
[
p
]
>
13
:
if
33
<=
data
[
p
]
&&
data
[
p
]
<=
47
{
goto
tr2
5
goto
tr2
6
}
case
data
[
p
]
>=
9
:
goto
tr2
4
goto
tr2
5
}
case
data
[
p
]
>
64
:
switch
{
...
...
@@ -818,25 +838,25 @@ match = true
}
case
data
[
p
]
>
96
:
if
123
<=
data
[
p
]
&&
data
[
p
]
<=
126
{
goto
tr2
5
goto
tr2
6
}
default
:
goto
tr2
5
goto
tr2
6
}
default
:
goto
tr2
5
goto
tr2
6
}
goto
st1
tr2
4
:
tr2
5
:
//line noparse.rl:20
match
=
true
goto
st
75
st
75
:
goto
st
84
st
84
:
if
p
++
;
p
==
pe
{
goto
_test_eof
75
goto
_test_eof
84
}
st_case_
75
:
//line noparse.go:8
4
0
st_case_
84
:
//line noparse.go:8
6
0
switch
data
[
p
]
{
case
32
:
goto
st2
...
...
@@ -1263,7 +1283,7 @@ match = true
st_case_31
:
switch
data
[
p
]
{
case
32
:
goto
tr2
4
goto
tr2
5
case
73
:
goto
st4
case
82
:
...
...
@@ -1280,10 +1300,10 @@ match = true
switch
{
case
data
[
p
]
>
13
:
if
33
<=
data
[
p
]
&&
data
[
p
]
<=
47
{
goto
tr2
5
goto
tr2
6
}
case
data
[
p
]
>=
9
:
goto
tr2
4
goto
tr2
5
}
case
data
[
p
]
>
64
:
switch
{
...
...
@@ -1293,25 +1313,25 @@ match = true
}
case
data
[
p
]
>
96
:
if
123
<=
data
[
p
]
&&
data
[
p
]
<=
126
{
goto
tr2
5
goto
tr2
6
}
default
:
goto
tr2
5
goto
tr2
6
}
default
:
goto
tr2
5
goto
tr2
6
}
goto
st1
tr2
5
:
tr2
6
:
//line noparse.rl:20
match
=
true
goto
st
76
st
76
:
goto
st
85
st
85
:
if
p
++
;
p
==
pe
{
goto
_test_eof
76
goto
_test_eof
85
}
st_case_
76
:
//line noparse.go:13
1
5
st_case_
85
:
//line noparse.go:13
3
5
switch
data
[
p
]
{
case
32
:
goto
st2
...
...
@@ -1893,10 +1913,10 @@ match = true
switch
{
case
data
[
p
]
>
13
:
if
32
<=
data
[
p
]
&&
data
[
p
]
<=
47
{
goto
tr1
4
goto
tr1
5
}
case
data
[
p
]
>=
9
:
goto
tr1
4
goto
tr1
5
}
case
data
[
p
]
>
64
:
switch
{
...
...
@@ -1906,13 +1926,13 @@ match = true
}
case
data
[
p
]
>
96
:
if
123
<=
data
[
p
]
&&
data
[
p
]
<=
126
{
goto
tr1
4
goto
tr1
5
}
default
:
goto
tr1
4
goto
tr1
5
}
default
:
goto
tr1
4
goto
tr1
5
}
goto
st9
st52
:
...
...
@@ -1935,10 +1955,10 @@ match = true
switch
{
case
data
[
p
]
>
13
:
if
32
<=
data
[
p
]
&&
data
[
p
]
<=
47
{
goto
tr1
4
goto
tr1
5
}
case
data
[
p
]
>=
9
:
goto
tr1
4
goto
tr1
5
}
case
data
[
p
]
>
64
:
switch
{
...
...
@@ -1948,13 +1968,13 @@ match = true
}
case
data
[
p
]
>
96
:
if
123
<=
data
[
p
]
&&
data
[
p
]
<=
126
{
goto
tr1
4
goto
tr1
5
}
default
:
goto
tr1
4
goto
tr1
5
}
default
:
goto
tr1
4
goto
tr1
5
}
goto
st9
st53
:
...
...
@@ -1977,10 +1997,10 @@ match = true
switch
{
case
data
[
p
]
>
13
:
if
32
<=
data
[
p
]
&&
data
[
p
]
<=
47
{
goto
tr1
4
goto
tr1
5
}
case
data
[
p
]
>=
9
:
goto
tr1
4
goto
tr1
5
}
case
data
[
p
]
>
64
:
switch
{
...
...
@@ -1990,13 +2010,13 @@ match = true
}
case
data
[
p
]
>
96
:
if
123
<=
data
[
p
]
&&
data
[
p
]
<=
126
{
goto
tr1
4
goto
tr1
5
}
default
:
goto
tr1
4
goto
tr1
5
}
default
:
goto
tr1
4
goto
tr1
5
}
goto
st9
st54
:
...
...
@@ -2019,10 +2039,10 @@ match = true
switch
{
case
data
[
p
]
>
13
:
if
32
<=
data
[
p
]
&&
data
[
p
]
<=
47
{
goto
tr1
4
goto
tr1
5
}
case
data
[
p
]
>=
9
:
goto
tr1
4
goto
tr1
5
}
case
data
[
p
]
>
64
:
switch
{
...
...
@@ -2032,13 +2052,13 @@ match = true
}
case
data
[
p
]
>
96
:
if
123
<=
data
[
p
]
&&
data
[
p
]
<=
126
{
goto
tr1
4
goto
tr1
5
}
default
:
goto
tr1
4
goto
tr1
5
}
default
:
goto
tr1
4
goto
tr1
5
}
goto
st9
st55
:
...
...
@@ -2048,7 +2068,7 @@ match = true
st_case_55
:
switch
data
[
p
]
{
case
32
:
goto
tr1
8
goto
tr1
9
case
73
:
goto
st4
case
82
:
...
...
@@ -2063,10 +2083,10 @@ match = true
switch
{
case
data
[
p
]
>
13
:
if
33
<=
data
[
p
]
&&
data
[
p
]
<=
47
{
goto
tr1
4
goto
tr1
5
}
case
data
[
p
]
>=
9
:
goto
tr1
8
goto
tr1
9
}
case
data
[
p
]
>
64
:
switch
{
...
...
@@ -2076,13 +2096,13 @@ match = true
}
case
data
[
p
]
>
96
:
if
123
<=
data
[
p
]
&&
data
[
p
]
<=
126
{
goto
tr1
4
goto
tr1
5
}
default
:
goto
tr1
4
goto
tr1
5
}
default
:
goto
tr1
4
goto
tr1
5
}
goto
st9
st56
:
...
...
@@ -2095,10 +2115,10 @@ match = true
goto
st2
case
73
:
goto
st4
case
97
:
goto
st57
case
105
:
goto
st5
case
111
:
goto
st57
case
112
:
goto
st20
}
...
...
@@ -2129,8 +2149,6 @@ match = true
goto
st58
case
112
:
goto
st20
case
116
:
goto
st16
}
switch
{
case
data
[
p
]
>
13
:
...
...
@@ -2153,8 +2171,8 @@ match = true
goto
st4
case
82
:
goto
st6
case
10
1
:
goto
st
16