11.08., 9:00 - 11:00: Due to updates GitLab will be unavailable for some minutes between 09:00 and 11:00.

Commit 2630aee4 authored by eckhart's avatar eckhart

- refactoring of parser guard, now move to __call__ method ot parsers, parsers...

- refactoring of parser guard, now move to __call__ method ot parsers, parsers moved to _parse-method
parent ee1d891c
......@@ -2,5 +2,3 @@
#cython: language_level=3
#cython: c_string_type=unicode
#cython: c_string_encoding=utf-8
import cython
......@@ -2,5 +2,3 @@
#cython: language_level=3
#cython: c_string_type=unicode
#cython: c_string_encoding=utf-8
import cython
......@@ -2,96 +2,3 @@
#cython: language_level=3
#cython: c_string_type=unicode
#cython: c_string_encoding=utf-8
import cython
# cdef class ParserError(Exception):
# cdef bint first_throw
# cdef add_parser_guard(parser_func)
# cdef class Parser(syntaxtree.ParserBase):
# pass
# cdef class Grammar:
# cdef bint dirty_flag__
# cdef bint history_tracking__
# cdef bint memoization__
# cdef bint left_recursion_handling__
# cdef int document_length__
# cdef int last_rb__loc__
# cdef bint moving_forward__
# cdef class PreprocessorToken(Parser):
# pass
#
# cdef class Token(Parser):
# cdef int len
#
# cdef class RegExp(Parser):
# pass
#
# cdef class Whitespace(RegExp):
# pass
#
# cdef class UnaryOperator(Parser):
# pass
#
# cdef class NaryOperator(Parser):
# pass
#
# cdef class Option(UnaryOperator):
# pass
#
# cdef class ZeroOrMore(Option):
# pass
#
# cdef class OneOrMore(UnaryOperator):
# pass
#
# cdef class Series(NaryOperator):
# cdef int mandatory
#
# cdef class Alternative(NaryOperator):
# pass
#
# cdef class SomeOf(NaryOperator):
# pass
#
# cdef class AllOf(NaryOperator):
# cdef int mandatory
# cdef int num_parsers
#
# cdef class FlowOperator(UnaryOperator):
# pass
#
# # cdef class Required(FlowOperator):
# # pass
#
# cdef class Lookahead(FlowOperator):
# pass
#
# cdef class NegativeLookahead(Lookahead):
# pass
#
# cdef class Lookbehind(FlowOperator):
# pass
#
# cdef class NegativeLookbehind(Lookbehind):
# pass
#
# cdef class Capture(UnaryOperator):
# pass
#
# cdef class Retrieve(Parser):
# pass
#
# cdef class Pop(Retrieve):
# pass
#
# cdef class Synonym(UnaryOperator):
# pass
#
# cdef class Forward(Parser):
# pass
This diff is collapsed.
......@@ -2,27 +2,3 @@
#cython: language_level=3
#cython: c_string_type=unicode
#cython: c_string_encoding=utf-8
import cython
# cdef class ParserBase:
# cdef str name
# cdef str ptype
# cdef class MockParser(ParserBase):
# pass
# cdef class ZombieParser(MockParser):
# pass
# cdef class Node:
# cdef object errors
# cdef int _pos
# cdef object _result
# cdef str _content
# cdef int _len
# cdef object parser
# cdef class RootNode(Node):
# pass
......@@ -15,9 +15,13 @@ setup(
name='DHParser',
version=__version__,
packages=['DHParser'],
ext_modules=cythonize(['DHParser/stringview.py', 'DHParser/syntaxtree.py',
'DHParser/parse.py', 'DHParser/transform.py',
'DHParser/compile.py', 'DHParser/ebnf.py'],
ext_modules=cythonize(['DHParser/stringview.py',
'DHParser/syntaxtree.py',
'DHParser/parse.py',
'DHParser/transform.py',
'DHParser/compile.py',
'DHParser/ebnf.py'
],
nthreads=0, annotate=False),
url='https://gitlab.lrz.de/badw-it/DHParser',
license='[Apache 2.0 License](https://www.apache.org/licenses/LICENSE-2.0)',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment