Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
trs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Taddeüs Kroes
trs
Commits
22b72193
Commit
22b72193
authored
Mar 14, 2012
by
Taddeus Kroes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed commented 'delta' token usage from parser.
parent
4ffcd659
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
18 deletions
+0
-18
src/parser.py
src/parser.py
+0
-18
No files found.
src/parser.py
View file @
22b72193
...
...
@@ -355,23 +355,6 @@ class Parser(BisonParser):
raise
BisonSyntaxError
(
'Unsupported option %d in target "%s".'
%
(
option
,
target
))
# pragma: nocover
#def on_delta_derivative(self, target, option, names, values):
# """
# delta_derivative : DELTA DIVIDE DELTA IDENTIFIER TIMES exp
# | DELTA LPAREN exp RPAREN DIVIDE DELTA IDENTIFIER
# """
# op = [k for k, v in OP_MAP.iteritems() if v == OP_DERIV][0]
# if option == 0: # rule: DELTA DIVIDE DELTA IDENTIFIER TIMES exp
# return Node(op, values[5], Leaf(values[3]))
# if option == 1: # rule: DELTA LPAREN exp RPAREN DIVIDE DELTA IDENTIFIER
# return Node(op, values[2], Leaf(values[6]))
# raise BisonSyntaxError('Unsupported option %d in target "%s".'
# % (option, target)) # pragma: nocover
def
on_unary
(
self
,
target
,
option
,
names
,
values
):
"""
unary : MINUS exp %prec NEG
...
...
@@ -470,7 +453,6 @@ class Parser(BisonParser):
# -----------------------------------------
# Special characters and operator tokens
# -----------------------------------------
#delta = '"%s"%s' % (DELTA, ' ' * (8 - len(DELTA)))
operators
=
'"%s"%s{ returntoken(IDENTIFIER); }
\
n
'
\
%
(
PI
,
' '
*
(
8
-
len
(
PI
)))
functions
=
[]
...
...
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