Skip to content
Snippets Groups Projects
Commit 718d409d authored by Taddeus Kroes's avatar Taddeus Kroes
Browse files

Removed matching code and added fix for Cython 0.14 in Makefile.

parent bf906321
No related branches found
No related tags found
No related merge requests found
......@@ -11,3 +11,4 @@
core
.coverage
coverage
config.mk
......@@ -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 $@ $<
......
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
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]))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment