Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
boolparse
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Complejidad y Biología de Sistemas
boolparse
Commits
d37d9909
Commit
d37d9909
authored
Jun 04, 2023
by
Stalin Munoz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace BooleanSentenceLexer.py
parent
3c00a89a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
36 deletions
+40
-36
boolparse/BooleanSentenceLexer.py
+40
-36
No files found.
boolparse/BooleanSentenceLexer.py
View file @
d37d9909
# Generated from BooleanSentence.g4 by ANTLR 4.
5.1
# Generated from BooleanSentence.g4 by ANTLR 4.
13.0
from
antlr4
import
*
from
io
import
StringIO
import
sys
if
sys
.
version_info
[
1
]
>
5
:
from
typing
import
TextIO
else
:
from
typing.io
import
TextIO
def
serializedATN
():
with
StringIO
()
as
buf
:
buf
.
write
(
"
\3\u0430\ud6d1\u8206\uad2d\u4417\uaef1\u8d80\uaadd\2\r
"
)
buf
.
write
(
"L
\b\1\4\2\t\2\4\3\t\3\4\4\t\4\4\5\t\5\4\6\t\6\4\7\t\7
"
)
buf
.
write
(
"
\4\b\t\b\4\t\t\t\4\n\t\n\4\13\t\13\4\f\t\f\3\2\3\2\3\3
"
)
buf
.
write
(
"
\3\3\3\4\3\4\3\5\3\5\3\6\6\6
#
\n\6\r\6\16\6
$
\3\6\7\6
(
\n
"
)
buf
.
write
(
"
\6\f\6\16\6
+
\13\6\3\7\3\7\3\b\3\b\3\t\3\t\3\t\3\t\5\t
"
)
buf
.
write
(
"
\65\n\t\3\n\3\n\3\n\3\n\5\n
;
\n\n\3\13\3\13\3\13\3\13\3
"
)
buf
.
write
(
"
\13\3\13\3\13\5\13
D
\n\13\3\f\6\f
G
\n\f\r\f\16\f
H
\3\f\3
"
)
buf
.
write
(
"
\f\2\2\r\3\3\5\4\7\5\t\6\13\7\r\b\17\t\21\n\23\13\25\f
"
)
buf
.
write
(
"
\27\r\3\2\7\5\2
C
\\
aac|
\6\2\61
;C
\\
aac|
\5\2
##
\u0080\u0080
"
)
buf
.
write
(
"
\u00ae\u00ae\5\2
((,,``
\5\2\13\f\17\17\"\"
S
\2\3\3\2\2\2
"
)
buf
.
write
(
"
\2\5\3\2\2\2\2\7\3\2\2\2\2\t\3\2\2\2\2\13\3\2\2\2\2\r
"
)
buf
.
write
(
"
\3\2\2\2\2\17\3\2\2\2\2\21\3\2\2\2\2\23\3\2\2\2\2\25\3
"
)
buf
.
write
(
"
\2\2\2\2\27\3\2\2\2\3\31\3\2\2\2\5\33\3\2\2\2\7\35\3\2
"
)
buf
.
write
(
"
\2\2\t\37\3\2\2\2\13\"\3\2\2\2\r
,
\3\2\2\2\17
.
\3\2\2\2
"
)
buf
.
write
(
"
\21\64\3\2\2\2\23
:
\3\2\2\2\25
C
\3\2\2\2\27
F
\3\2\2\2\31
"
)
buf
.
write
(
"
\32\7
*
\2\2\32\4\3\2\2\2\33\34\7
+
\2\2\34\6\3\2\2\2\35\36
"
)
buf
.
write
(
"
\7\63\2\2\36\b\3\2\2\2\37
\7\62\2\2
\n\3\2\2\2
!#
\t\2\2
"
)
buf
.
write
(
"
\2\"
!
\3\2\2\2
#$
\3\2\2\2
$
\"\3\2\2\2
$
%
\3\2\2\2
%
)
\3\2\2\2
"
)
buf
.
write
(
"&(
\t\3\2\2\'
&
\3\2\2\2
(+
\3\2\2\2
)
\'\3\2\2\2
)*
\3\2\2\2
*"
)
buf
.
write
(
"
\f\3\2\2\2
+)
\3\2\2\2
,-
\t\4\2\2
-
\16\3\2\2\2
./
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,
0
,
60
,
61
,
5
,
45
,
0
,
0
,
61
,
66
,
5
,
62
,
0
,
0
,
62
,
63
,
5
,
60
,
0
,
0
,
63
,
64
,
5
,
61
,
0
,
0
,
64
,
66
,
5
,
62
,
0
,
0
,
65
,
58
,
1
,
0
,
0
,
0
,
65
,
59
,
1
,
0
,
0
,
0
,
65
,
62
,
1
,
0
,
0
,
0
,
66
,
20
,
1
,
0
,
0
,
0
,
67
,
69
,
7
,
4
,
0
,
0
,
68
,
67
,
1
,
0
,
0
,
0
,
69
,
70
,
1
,
0
,
0
,
0
,
70
,
68
,
1
,
0
,
0
,
0
,
70
,
71
,
1
,
0
,
0
,
0
,
71
,
72
,
1
,
0
,
0
,
0
,
72
,
73
,
6
,
10
,
0
,
0
,
73
,
22
,
1
,
0
,
0
,
0
,
7
,
0
,
34
,
39
,
50
,
56
,
65
,
70
,
1
,
6
,
0
,
0
]
class
BooleanSentenceLexer
(
Lexer
):
...
...
@@ -42,7 +45,6 @@ class BooleanSentenceLexer(Lexer):
decisionsToDFA
=
[
DFA
(
ds
,
i
)
for
i
,
ds
in
enumerate
(
atn
.
decisionToState
)
]
T__0
=
1
T__1
=
2
TRUE
=
3
...
...
@@ -55,6 +57,8 @@ class BooleanSentenceLexer(Lexer):
EQ
=
10
BLANK
=
11
channelNames
=
[
u"DEFAULT_TOKEN_CHANNEL"
,
u"HIDDEN"
]
modeNames
=
[
"DEFAULT_MODE"
]
literalNames
=
[
"<INVALID>"
,
...
...
@@ -68,9 +72,9 @@ class BooleanSentenceLexer(Lexer):
grammarFileName
=
"BooleanSentence.g4"
def
__init__
(
self
,
input
=
None
):
super
()
.
__init__
(
input
)
self
.
checkVersion
(
"4.
5.1
"
)
def
__init__
(
self
,
input
=
None
,
output
:
TextIO
=
sys
.
stdout
):
super
()
.
__init__
(
input
,
output
)
self
.
checkVersion
(
"4.
13.0
"
)
self
.
_interp
=
LexerATNSimulator
(
self
,
self
.
atn
,
self
.
decisionsToDFA
,
PredictionContextCache
())
self
.
_actions
=
None
self
.
_predicates
=
None
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment