Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
fja
eval
Commits
5849914b
Commit
5849914b
authored
Apr 21, 2021
by
Vladimír Štill
Browse files
lib: Hopefully drop all excess quotes in parser
parent
24edb89c
Pipeline
#81099
passed with stage
in 1 minute and 21 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
lib/parsing/parser.py
View file @
5849914b
...
...
@@ -289,7 +289,7 @@ class NFABuilder(NFAListener):
name
+=
str
(
value
)
i
+=
1
return
'"'
+
name
+
'"'
return
name
def
exitProduction
(
self
,
ctx
):
state
=
State
(
self
.
visitStatename
(
ctx
.
statename
(
0
)))
...
...
@@ -385,8 +385,8 @@ class RegExBuilder(RegExVisitor):
name
+=
str
(
value
)
i
+=
1
self
.
characters
.
add
(
Character
(
'"'
+
name
+
'"'
))
return
CharNode
(
Character
(
'"'
+
name
+
'"'
))
self
.
characters
.
add
(
Character
(
name
))
return
CharNode
(
Character
(
name
))
def
visitParentheses
(
self
,
ctx
):
return
self
.
visitExpr
(
ctx
.
expr
())
...
...
@@ -460,7 +460,7 @@ class CFGBuilder(CFGListener):
if
value
is
not
None
:
name
+=
str
(
value
)
j
+=
1
name
=
'"'
+
name
+
'"'
name
=
name
terminal
=
Terminal
(
name
)
self
.
terminals
.
add
(
terminal
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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