Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
Production Test Suite - base
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Production Test Suite - base
Commits
edf8187a
Commit
edf8187a
authored
May 19, 2011
by
Juan David González Cobas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parse: allow test names like test00 and 00 simutaneaously
parent
e0d1afa6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
parse.py
parse.py
+5
-2
No files found.
parse.py
View file @
edf8187a
...
...
@@ -10,6 +10,7 @@ tokens = (
'LPAREN'
,
'RPAREN'
,
'DASH'
,
'TEST'
,
)
t_NUMBER
=
r'[0-9]+'
...
...
@@ -17,6 +18,7 @@ t_REPEAT = r'repeat'
t_LPAREN
=
r'\('
t_RPAREN
=
r'\)'
t_DASH
=
r'-'
t_TEST
=
r'test'
t_ignore
=
'
\t
'
...
...
@@ -47,8 +49,9 @@ def p_batch_range(p):
p
[
0
]
=
[
'range'
,
p
[
1
],
p
[
3
]
]
def
p_tst
(
p
):
'tst : NUMBER'
p
[
0
]
=
p
[
1
]
'''tst : NUMBER
| TEST NUMBER'''
p
[
0
]
=
p
[
len
(
p
)
-
1
]
def
p_error
(
p
):
print
'syntax error!'
...
...
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