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
2ad7b226
Commit
2ad7b226
authored
Dec 09, 2011
by
Sander Mathijs van Veen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added coverage 'exclude' markers to src/parser.py.
parent
b878620d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/parser.py
src/parser.py
+4
-4
No files found.
src/parser.py
View file @
2ad7b226
...
@@ -136,7 +136,7 @@ class Parser(BisonParser):
...
@@ -136,7 +136,7 @@ class Parser(BisonParser):
return
values
[
0
]
return
values
[
0
]
raise
BisonSyntaxError
(
'Unsupported option %d in target "%s".'
raise
BisonSyntaxError
(
'Unsupported option %d in target "%s".'
%
(
option
,
target
))
%
(
option
,
target
))
# pragma: nocover
def
on_unary
(
self
,
target
,
option
,
names
,
values
):
def
on_unary
(
self
,
target
,
option
,
names
,
values
):
"""
"""
...
@@ -147,7 +147,7 @@ class Parser(BisonParser):
...
@@ -147,7 +147,7 @@ class Parser(BisonParser):
return
Node
(
'-'
,
values
[
1
])
return
Node
(
'-'
,
values
[
1
])
raise
BisonSyntaxError
(
'Unsupported option %d in target "%s".'
raise
BisonSyntaxError
(
'Unsupported option %d in target "%s".'
%
(
option
,
target
))
%
(
option
,
target
))
# pragma: nocover
def
on_binary
(
self
,
target
,
option
,
names
,
values
):
def
on_binary
(
self
,
target
,
option
,
names
,
values
):
"""
"""
...
@@ -177,7 +177,7 @@ class Parser(BisonParser):
...
@@ -177,7 +177,7 @@ class Parser(BisonParser):
return
Node
(
'^'
,
values
[
0
],
values
[
2
])
return
Node
(
'^'
,
values
[
0
],
values
[
2
])
raise
BisonSyntaxError
(
'Unsupported option %d in target "%s".'
raise
BisonSyntaxError
(
'Unsupported option %d in target "%s".'
%
(
option
,
target
))
%
(
option
,
target
))
# pragma: nocover
def
on_concat
(
self
,
option
,
target
,
names
,
values
):
def
on_concat
(
self
,
option
,
target
,
names
,
values
):
"""
"""
...
@@ -211,7 +211,7 @@ class Parser(BisonParser):
...
@@ -211,7 +211,7 @@ class Parser(BisonParser):
return
Node
(
'^'
,
Leaf
(
identifier
),
Leaf
(
int
(
exponent
)))
return
Node
(
'^'
,
Leaf
(
identifier
),
Leaf
(
int
(
exponent
)))
raise
BisonSyntaxError
(
'Unsupported option %d in target "%s".'
raise
BisonSyntaxError
(
'Unsupported option %d in target "%s".'
%
(
option
,
target
))
%
(
option
,
target
))
# pragma: nocover
# -----------------------------------------
# -----------------------------------------
# raw lex script, verbatim here
# raw lex script, verbatim here
...
...
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