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

Commit 753acc34 authored by Eckhart Arnold's avatar Eckhart Arnold
Browse files

Refactoring and Doc-String adding...

parent fda0f022
This diff is collapsed.
......@@ -4,7 +4,7 @@ def MLWScanner(text):
### DON'T EDIT OR REMOVE THIS LINE ###
class MLWGrammar(ParserHeadquarter):
class MLWGrammar(ParserCenter):
r"""Parser for a MLW source file, with this grammar:
# EBNF-Syntax für MLW-Artikel
......@@ -100,7 +100,7 @@ class MLWGrammar(ParserHeadquarter):
DATEI_ENDE = !/./
NIEMALS = /(?!.)/
"""
source_hash__ = "ca55553a5e483fa08341abecc2aa284c"
source_hash__ = "33595036ca8cff5d8dcf0e0fe70c493a"
parser_initialization__ = "upon instatiation"
wsp__ = mixin_comment(whitespace=r'\s*', comment=r'#.*(?:\n|$)')
wspL__ = wsp__
......
......@@ -4,7 +4,7 @@ def PopRetrieveScanner(text):
### DON'T EDIT OR REMOVE THIS LINE ###
class PopRetrieveGrammar(ParserHeadquarter):
class PopRetrieveGrammar(ParserCenter):
r"""Parser for a PopRetrieve source file, with this grammar:
document = { text | codeblock }
......@@ -13,7 +13,7 @@ class PopRetrieveGrammar(ParserHeadquarter):
delimiter_sign = /`+/
text = /[^`]+/
"""
source_hash__ = "b1b316e7525fa8130f132877eb2c8d55"
source_hash__ = "525d71c131f2dfeed4edeec81070201c"
parser_initialization__ = "upon instatiation"
wsp__ = mixin_comment(whitespace=r'\s*', comment=r'')
wspL__ = ''
......
......@@ -26,7 +26,7 @@ import sys
sys.path.append(os.path.abspath('../'))
from ParserCombinators import EBNFGrammar, EBNFTransTable, EBNFCompiler, full_compilation, Forward, RegExp, \
Alternative, Sequence, Token, compile_python_object, compileDSL, ParserHeadquarter
Alternative, Sequence, Token, compile_python_object, compileDSL, ParserCenter
arithmetic_EBNF = r"""
expression = term { ("+" | "-") term}
......@@ -103,7 +103,7 @@ class EBNFGrammar(ParserRoot):
"""
class LeftRecursiveGrammar(ParserHeadquarter):
class LeftRecursiveGrammar(ParserCenter):
"""formula = expr "."
expr = expr ("+"|"-") term | term
term = term ("*"|"/") factor | factor
......
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