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
718d409d
Commit
718d409d
authored
Dec 08, 2011
by
Taddeus Kroes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed matching code and added fix for Cython 0.14 in Makefile.
parent
bf906321
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
31 deletions
+5
-31
.gitignore
.gitignore
+1
-0
external/rules.mk
external/rules.mk
+4
-0
src/match.py
src/match.py
+0
-13
tests/test_match.py
tests/test_match.py
+0
-18
No files found.
.gitignore
View file @
718d409d
...
...
@@ -11,3 +11,4 @@
core
.coverage
coverage
config.mk
external/rules.mk
View file @
718d409d
...
...
@@ -19,8 +19,12 @@ $(b)pybison/bison_.o: $(b)pybison/bison_.c
ifdef
PYREX
py2c
:=
pyrexc
else
ifdef
CYTHON_0_14
py2c
:=
cython
--fast-fail
--line-directives
else
py2c
:=
cython
-Wextra
-Werror
--fast-fail
--line-directives
endif
endif
$(b)pybison/%.c
:
$(d)pybison/src/pyrex/%.pyx
$(py2c)
-o
$@
$<
...
...
src/match.py
deleted
100644 → 0
View file @
bf906321
from
node
import
Node
,
Leaf
from
parser
import
Parser
from
external.graph_drawing.graph
import
generate_graph
from
external.graph_drawing.line
import
generate_line
patterns
=
{
#'': L('')
}
def
matches
(
exp
,
pattern
):
pass
tests/test_match.py
deleted
100644 → 0
View file @
bf906321
import
unittest
from
src.node
import
ExpressionNode
as
N
,
ExpressionLeaf
as
L
from
src.match
import
patterns
,
matches
from
src.parser
import
Parser
from
tests.parser
import
ParserWrapper
class
TestMatch
(
unittest
.
TestCase
):
def
setUp
(
self
):
self
.
parser
=
ParserWrapper
(
Parser
)
def
test_constant
(
self
):
pass
def
assert_matches
(
self
,
exp
,
pattern_name
):
self
.
assertTrue
(
matches
(
self
.
parser
.
run
([
exp
]),
patterns
[
pattern_name
]))
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