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

Commit 261dfa0a authored by Eckhart Arnold's avatar Eckhart Arnold
Browse files

Full logs of the parsing process will now be written to the DEBUG-Folder; some bug-fixes

parent 31230d5e
......@@ -3,7 +3,8 @@ __pycache__/
.idea/
.cache/
*.ast
*.dst
*.cst
*.log
*.st
*.bcf
*.aux
......
This diff is collapsed.
......@@ -4,7 +4,7 @@ def MLWScanner(text):
### DON'T EDIT OR REMOVE THIS LINE ###
class MLWGrammar(ParserCenter):
class MLWGrammar(GrammarBase):
r"""Parser for a MLW source file, with this grammar:
# EBNF-Syntax für MLW-Artikel
......@@ -100,32 +100,32 @@ class MLWGrammar(ParserCenter):
DATEI_ENDE = !/./
NIEMALS = /(?!.)/
"""
source_hash__ = "33595036ca8cff5d8dcf0e0fe70c493a"
source_hash__ = "4632b08b0de268e81efb1b92b322076e"
parser_initialization__ = "upon instatiation"
wsp__ = mixin_comment(whitespace=r'\s*', comment=r'#.*(?:\n|$)')
wspL__ = wsp__
wspR__ = wsp__
NIEMALS = RE('(?!.)')
DATEI_ENDE = NegativeLookahead(RE('.'))
LEER = RE('\\s*')
GROSSSCHRIFT = RE('[A-ZÄÖÜ]+', wR=wsp__)
LAT_WORT = RE('[a-z]+', wR=wsp__)
WORT_KLEIN = RE('[a-zäöüß]+', wR=wsp__)
WORT_GROSS = RE('[A-ZÄÖÜ][a-zäöüß]+', wR=wsp__)
WORT = RE('[A-ZÄÖÜ]?[a-zäöüß]+', wR=wsp__)
Name = Sequence(WORT, ZeroOrMore(Alternative(WORT, RE('[A-ZÄÖÜÁÀ]\\.'))))
NIEMALS = RE('(?!.)', wR='', wL='')
DATEI_ENDE = NegativeLookahead(RE('.', wR='', wL=''))
LEER = RE('\\s*', wR='', wL='')
GROSSSCHRIFT = RE('[A-ZÄÖÜ]+', wL='')
LAT_WORT = RE('[a-z]+', wL='')
WORT_KLEIN = RE('[a-zäöüß]+', wL='')
WORT_GROSS = RE('[A-ZÄÖÜ][a-zäöüß]+', wL='')
WORT = RE('[A-ZÄÖÜ]?[a-zäöüß]+', wL='')
Name = Sequence(WORT, ZeroOrMore(Alternative(WORT, RE('[A-ZÄÖÜÁÀ]\\.', wR='', wL=''))))
Autorinfo = Sequence(Alternative(Token("AUTORIN"), Token("AUTOR")), Name)
Zusatz = Sequence(Token("ZUSATZ"), RE('\\s?.*'))
EinBeleg = Sequence(OneOrMore(Sequence(NegativeLookahead(Sequence(RE('\\s*'), Alternative(Token("*"), Token("BEDEUTUNG"), Token("AUTOR"), Token("NAME"), Token("ZUSATZ")))), RE('\\s?.*'))), Optional(Zusatz))
Zusatz = Sequence(Token("ZUSATZ"), RE('\\s?.*', wR='', wL=''))
EinBeleg = Sequence(OneOrMore(Sequence(NegativeLookahead(Sequence(RE('\\s*', wR='', wL=''), Alternative(Token("*"), Token("BEDEUTUNG"), Token("AUTOR"), Token("NAME"), Token("ZUSATZ")))), RE('\\s?.*', wR='', wL=''))), Optional(Zusatz))
Belege = Sequence(Token("BELEGE"), ZeroOrMore(Sequence(Token("*"), EinBeleg)))
DeutscheBedeutung = Sequence(Token("DEU"), RE('(?:(?![A-ZÄÖÜ][A-ZÄÖÜ]).)+', wR=wsp__))
LateinischeBedeutung = Sequence(Token("LAT"), RE('(?:(?![A-ZÄÖÜ][A-ZÄÖÜ]).)+', wR=wsp__))
DeutscheBedeutung = Sequence(Token("DEU"), RE('(?:(?![A-ZÄÖÜ][A-ZÄÖÜ]).)+', wL=''))
LateinischeBedeutung = Sequence(Token("LAT"), RE('(?:(?![A-ZÄÖÜ][A-ZÄÖÜ]).)+', wL=''))
Interpretamente = Sequence(LateinischeBedeutung, DeutscheBedeutung)
Bedeutungskategorie = RE('(?:(?![A-ZÄÖÜ][A-ZÄÖÜ]).)+', wR=wsp__)
Bedeutungskategorie = RE('(?:(?![A-ZÄÖÜ][A-ZÄÖÜ]).)+', wL='')
Bedeutung = Sequence(Alternative(Interpretamente, Bedeutungskategorie), Optional(Belege))
BedeutungsPosition = OneOrMore(Sequence(Token("BEDEUTUNG"), Bedeutung))
VerweisZiel = RE('<\\w+>', wR=wsp__, wL=wsp__)
Verweis = RE('>>\\w+', wR=wsp__, wL=wsp__)
VerweisZiel = RE('<\\w+>')
Verweis = RE('>>\\w+')
Beleg = Verweis
Schreibweise = Alternative(Token("vizreg-"), Token("festregel(a)"), Token("fezdregl(a)"), Token("fat-"))
SWVariante = Sequence(Schreibweise, Token(":"), Beleg)
......@@ -133,14 +133,14 @@ class MLWGrammar(ParserCenter):
SchreibweisenPosition = Sequence(Token("SCHREIBWEISE"), Required(SWTyp), Token(":"), Required(SWVariante), ZeroOrMore(Sequence(Token(","), Required(SWVariante))))
ArtikelKopf = SchreibweisenPosition
_genus = Alternative(Token("maskulinum"), Token("m."), Token("femininum"), Token("f."), Token("neutrum"), Token("n."))
Flexion = RE('-?[a-z]+', wR=wsp__)
Flexion = RE('-?[a-z]+', wL='')
Flexionen = Sequence(Flexion, ZeroOrMore(Sequence(Token(","), Required(Flexion))))
GVariante = Sequence(Flexionen, Optional(_genus), Token(":"), Beleg)
GrammatikVarianten = Sequence(Token(";"), Required(GVariante))
_wortart = Alternative(Token("nomen"), Token("n."), Token("verb"), Token("v."), Token("adverb"), Token("adv."), Token("adjektiv"), Token("adj."))
GrammatikPosition = Sequence(Token("GRAMMATIK"), Required(_wortart), Required(Token(";")), Required(Flexionen), Optional(_genus), ZeroOrMore(GrammatikVarianten), Optional(Alternative(Token(";"), Token("."))))
LVZusatz = Token("sim.")
LVariante = RE('(?:[a-z]|-)+', wR=wsp__, wL=wsp__)
LVariante = RE('(?:[a-z]|-)+')
LemmaVarianten = Sequence(Token("VARIANTEN"), Required(LVariante), ZeroOrMore(Sequence(Token(","), Required(LVariante))), Optional(Sequence(Token(";"), Required(LVZusatz))))
_tll = Token("*")
Lemma = Sequence(Optional(_tll), WORT_KLEIN)
......
This diff is collapsed.
This diff is collapsed.
Artikel->Optional->LEER->RegExp; MATCH; ''
Artikel->Required->LemmaPosition->Token "LEMMA"->RegExp; MATCH; 'LEMMA'
Artikel->Required->LemmaPosition->Required->Lemma->Optional->_tll->RegExp; MATCH; '*'
Artikel->Required->LemmaPosition->Required->Lemma->WORT_KLEIN->RegExp; MATCH; 'facitergula'
Artikel->Required->LemmaPosition->Optional->LemmaVarianten->Token "VARIANTEN"->RegExp; MATCH; 'VARIANTEN'
Artikel->Required->LemmaPosition->Optional->LemmaVarianten->Required->LVariante->RegExp; MATCH; 'fasc-itergula'
Artikel->Required->LemmaPosition->Optional->LemmaVarianten->ZeroOrMore->Sequence->Token ","->RegExp; MATCH; ','
Artikel->Required->LemmaPosition->Optional->LemmaVarianten->ZeroOrMore->Sequence->Required->LVariante->RegExp; MATCH; 'fac-iet-ergula'
Artikel->Required->LemmaPosition->Optional->LemmaVarianten->ZeroOrMore->Sequence->Token ","->RegExp; MATCH; ','
Artikel->Required->LemmaPosition->Optional->LemmaVarianten->ZeroOrMore->Sequence->Required->LVariante->RegExp; MATCH; 'fac-ist-ergula'
Artikel->Required->LemmaPosition->Optional->LemmaVarianten->ZeroOrMore->Sequence->Token ","->RegExp; MATCH; ','
Artikel->Required->LemmaPosition->Optional->LemmaVarianten->ZeroOrMore->Sequence->Required->LVariante->RegExp; MATCH; 'fa-rcu-tergula'
Artikel->Required->LemmaPosition->Optional->LemmaVarianten->Optional->Sequence->Token ";"->RegExp; MATCH; ';'
Artikel->Required->LemmaPosition->Optional->LemmaVarianten->Optional->Sequence->Required->LVZusatz->RegExp; MATCH; 'sim.'
Artikel->Required->LemmaPosition->Required->GrammatikPosition->Token "GRAMMATIK"->RegExp; MATCH; 'GRAMMATIK'
Artikel->Required->LemmaPosition->Required->GrammatikPosition->Required->_wortart->Token "nomen"->RegExp; MATCH; 'nomen'
Artikel->Required->LemmaPosition->Required->GrammatikPosition->Required->Token ";"->RegExp; MATCH; ';'
Artikel->Required->LemmaPosition->Required->GrammatikPosition->Required->Flexionen->Flexion->RegExp; MATCH; '-ar'
Artikel->Required->LemmaPosition->Required->GrammatikPosition->Optional->_genus->Token "f."->RegExp; MATCH; 'f.'
Artikel->Required->LemmaPosition->Required->GrammatikPosition->ZeroOrMore->GrammatikVarianten->Token ";"->RegExp; MATCH; ';'
Artikel->Required->LemmaPosition->Required->GrammatikPosition->ZeroOrMore->GrammatikVarianten->Required->GVariante->Flexionen->Flexion->RegExp; MATCH; '-us'
Artikel->Required->LemmaPosition->Required->GrammatikPosition->ZeroOrMore->GrammatikVarianten->Required->GVariante->Flexionen->ZeroOrMore->Sequence->Token ","->RegExp; MATCH; ','
Artikel->Required->LemmaPosition->Required->GrammatikPosition->ZeroOrMore->GrammatikVarianten->Required->GVariante->Flexionen->ZeroOrMore->Sequence->Required->Flexion->RegExp; MATCH; '-i'
Artikel->Required->LemmaPosition->Required->GrammatikPosition->ZeroOrMore->GrammatikVarianten->Required->GVariante->Optional->_genus->Token "m."->RegExp; MATCH; 'm.'
Artikel->Required->LemmaPosition->Required->GrammatikPosition->ZeroOrMore->GrammatikVarianten->Required->GVariante->Token ":"->RegExp; MATCH; ':'
Artikel->Required->LemmaPosition->Required->GrammatikPosition->ZeroOrMore->GrammatikVarianten->Required->GVariante->Verweis->RegExp; MATCH; '>>beleg_id_1'
Artikel->Required->LemmaPosition->Required->GrammatikPosition->ZeroOrMore->GrammatikVarianten->Token ";"->RegExp; MATCH; ';'
Artikel->Required->LemmaPosition->Required->GrammatikPosition->ZeroOrMore->GrammatikVarianten->Required->GVariante->Flexionen->Flexion->RegExp; MATCH; '-um'
Artikel->Required->LemmaPosition->Required->GrammatikPosition->ZeroOrMore->GrammatikVarianten->Required->GVariante->Flexionen->ZeroOrMore->Sequence->Token ","->RegExp; MATCH; ','
Artikel->Required->LemmaPosition->Required->GrammatikPosition->ZeroOrMore->GrammatikVarianten->Required->GVariante->Flexionen->ZeroOrMore->Sequence->Required->Flexion->RegExp; MATCH; '-i'
Artikel->Required->LemmaPosition->Required->GrammatikPosition->ZeroOrMore->GrammatikVarianten->Required->GVariante->Optional->_genus->Token "n."->RegExp; MATCH; 'n.'
Artikel->Required->LemmaPosition->Required->GrammatikPosition->ZeroOrMore->GrammatikVarianten->Required->GVariante->Token ":"->RegExp; MATCH; ':'
Artikel->Required->LemmaPosition->Required->GrammatikPosition->ZeroOrMore->GrammatikVarianten->Required->GVariante->Verweis->RegExp; MATCH; '>>beleg_id_2'
Artikel->Optional->SchreibweisenPosition->Token "SCHREIBWEISE"->RegExp; MATCH; 'SCHREIBWEISE'
Artikel->Optional->SchreibweisenPosition->Required->SWTyp->Token "script."->RegExp; MATCH; 'script.'
Artikel->Optional->SchreibweisenPosition->Token ":"->RegExp; MATCH; ':'
Artikel->Optional->SchreibweisenPosition->Required->SWVariante->Schreibweise->Token "vizreg-"->RegExp; MATCH; 'vizreg-'
Artikel->Optional->SchreibweisenPosition->Required->SWVariante->Token ":"->RegExp; MATCH; ':'
Artikel->Optional->SchreibweisenPosition->Required->SWVariante->Verweis->RegExp; MATCH; '>>beleg_id_3'
Artikel->Optional->SchreibweisenPosition->ZeroOrMore->Sequence->Token ","->RegExp; MATCH; ','
Artikel->Optional->SchreibweisenPosition->ZeroOrMore->Sequence->Required->SWVariante->Schreibweise->Token "festregel(a)"->RegExp; MATCH; 'festregel(a)'
Artikel->Optional->SchreibweisenPosition->ZeroOrMore->Sequence->Required->SWVariante->Token ":"->RegExp; MATCH; ':'
Artikel->Optional->SchreibweisenPosition->ZeroOrMore->Sequence->Required->SWVariante->Verweis->RegExp; MATCH; '>>beleg_id_4'
Artikel->Optional->SchreibweisenPosition->ZeroOrMore->Sequence->Token ","->RegExp; MATCH; ','
Artikel->Optional->SchreibweisenPosition->ZeroOrMore->Sequence->Required->SWVariante->Schreibweise->Token "fezdregl(a)"->RegExp; MATCH; 'fezdregl(a)'
Artikel->Optional->SchreibweisenPosition->ZeroOrMore->Sequence->Required->SWVariante->Token ":"->RegExp; MATCH; ':'
Artikel->Optional->SchreibweisenPosition->ZeroOrMore->Sequence->Required->SWVariante->Verweis->RegExp; MATCH; '>>beleg_id5'
Artikel->Required->BedeutungsPosition->Sequence->Token "BEDEUTUNG"->RegExp; MATCH; 'BEDEUTUNG'
Artikel->Required->BedeutungsPosition->Sequence->Bedeutung->Alternative->Interpretamente->LateinischeBedeutung->Token "LAT"->RegExp; MATCH; 'LAT'
Artikel->Required->BedeutungsPosition->Sequence->Bedeutung->Alternative->Interpretamente->LateinischeBedeutung->RE /(?:(?![A-ZÄÖÜ][A-ZÄÖÜ]).)+/->RegExp; MATCH; 'pannus, faciale, sudarium...'
Artikel->Required->BedeutungsPosition->Sequence->Bedeutung->Alternative->Interpretamente->DeutscheBedeutung->Token "DEU"->RegExp; MATCH; 'DEU'
Artikel->Required->BedeutungsPosition->Sequence->Bedeutung->Alternative->Interpretamente->DeutscheBedeutung->RE /(?:(?![A-ZÄÖÜ][A-ZÄÖÜ]).)+/->RegExp; MATCH; 'Gesichts-, Schweißtuch [u...'
Artikel->Required->BedeutungsPosition->Sequence->Bedeutung->Optional->Belege->Token "BELEGE"->RegExp; MATCH; 'BELEGE'
Artikel->Required->BedeutungsPosition->Sequence->Bedeutung->Optional->Belege->ZeroOrMore->Sequence->Token "*"->RegExp; MATCH; '*'
Artikel->Required->BedeutungsPosition->Sequence->Bedeutung->Optional->Belege->ZeroOrMore->Sequence->EinBeleg->OneOrMore->Sequence->NegativeLookahead->Sequence->RE /\s*/->RegExp; MATCH; ''
Artikel->Required->BedeutungsPosition->Sequence->Bedeutung->Optional->Belege->ZeroOrMore->Sequence->EinBeleg->OneOrMore->Sequence->RE /\s?.*/->RegExp; MATCH; 'Catal. thes. Germ. 28,11 ...'
Artikel->Required->BedeutungsPosition->Sequence->Bedeutung->Optional->Belege->ZeroOrMore->Sequence->EinBeleg->OneOrMore->Sequence->NegativeLookahead->Sequence->RE /\s*/->RegExp; MATCH; '\n'
Artikel->Required->BedeutungsPosition->Sequence->Bedeutung->Optional->Belege->ZeroOrMore->Sequence->EinBeleg->OneOrMore->Sequence->NegativeLookahead->Sequence->Alternative->Token "*"->RegExp; MATCH; '*'
Artikel->Required->BedeutungsPosition->Sequence->Bedeutung->Optional->Belege->ZeroOrMore->Sequence->Token "*"->RegExp; MATCH; '*'
Artikel->Required->BedeutungsPosition->Sequence->Bedeutung->Optional->Belege->ZeroOrMore->Sequence->EinBeleg->OneOrMore->Sequence->NegativeLookahead->Sequence->RE /\s*/->RegExp; MATCH; ''
Artikel->Required->BedeutungsPosition->Sequence->Bedeutung->Optional->Belege->ZeroOrMore->Sequence->EinBeleg->OneOrMore->Sequence->RE /\s?.*/->RegExp; MATCH; 'Form. Sangall. 39 p. 421,...'
Artikel->Required->BedeutungsPosition->Sequence->Bedeutung->Optional->Belege->ZeroOrMore->Sequence->EinBeleg->OneOrMore->Sequence->NegativeLookahead->Sequence->RE /\s*/->RegExp; MATCH; '\n '
Artikel->Required->BedeutungsPosition->Sequence->Bedeutung->Optional->Belege->ZeroOrMore->Sequence->EinBeleg->OneOrMore->Sequence->RE /\s?.*/->RegExp; MATCH; '\n -as duas."'
Artikel->Required->BedeutungsPosition->Sequence->Bedeutung->Optional->Belege->ZeroOrMore->Sequence->EinBeleg->OneOrMore->Sequence->NegativeLookahead->Sequence->RE /\s*/->RegExp; MATCH; '\n'
Artikel->Required->BedeutungsPosition->Sequence->Bedeutung->Optional->Belege->ZeroOrMore->Sequence->EinBeleg->OneOrMore->Sequence->NegativeLookahead->Sequence->Alternative->Token "*"->RegExp; MATCH; '*'
Artikel->Required->BedeutungsPosition->Sequence->Bedeutung->Optional->Belege->ZeroOrMore->Sequence->Token "*"->RegExp; MATCH; '*'
Artikel->Required->BedeutungsPosition->Sequence->Bedeutung->Optional->Belege->ZeroOrMore->Sequence->EinBeleg->OneOrMore->Sequence->NegativeLookahead->Sequence->RE /\s*/->RegExp; MATCH; ''
Artikel->Required->BedeutungsPosition->Sequence->Bedeutung->Optional->Belege->ZeroOrMore->Sequence->EinBeleg->OneOrMore->Sequence->RE /\s?.*/->RegExp; MATCH; 'Catal. thes. Germ. 18,7 ...'
Artikel->Required->BedeutungsPosition->Sequence->Bedeutung->Optional->Belege->ZeroOrMore->Sequence->EinBeleg->OneOrMore->Sequence->NegativeLookahead->Sequence->RE /\s*/->RegExp; MATCH; '\n'
Artikel->Required->BedeutungsPosition->Sequence->Bedeutung->Optional->Belege->ZeroOrMore->Sequence->EinBeleg->OneOrMore->Sequence->NegativeLookahead->Sequence->Alternative->Token "*"->RegExp; MATCH; '*'
Artikel->Required->BedeutungsPosition->Sequence->Bedeutung->Optional->Belege->ZeroOrMore->Sequence->Token "*"->RegExp; MATCH; '*'
Artikel->Required->BedeutungsPosition->Sequence->Bedeutung->Optional->Belege->ZeroOrMore->Sequence->EinBeleg->OneOrMore->Sequence->NegativeLookahead->Sequence->RE /\s*/->RegExp; MATCH; ''
Artikel->Required->BedeutungsPosition->Sequence->Bedeutung->Optional->Belege->ZeroOrMore->Sequence->EinBeleg->OneOrMore->Sequence->RE /\s?.*/->RegExp; MATCH; 'Libri confrat. I app. ...'
Artikel->Required->BedeutungsPosition->Sequence->Bedeutung->Optional->Belege->ZeroOrMore->Sequence->EinBeleg->OneOrMore->Sequence->NegativeLookahead->Sequence->RE /\s*/->RegExp; MATCH; '\n '
Artikel->Required->BedeutungsPosition->Sequence->Bedeutung->Optional->Belege->ZeroOrMore->Sequence->EinBeleg->OneOrMore->Sequence->RE /\s?.*/->RegExp; MATCH; '\n circumdari iussit po...'
Artikel->Required->BedeutungsPosition->Sequence->Bedeutung->Optional->Belege->ZeroOrMore->Sequence->EinBeleg->OneOrMore->Sequence->NegativeLookahead->Sequence->RE /\s*/->RegExp; MATCH; '\n'
Artikel->Required->BedeutungsPosition->Sequence->Bedeutung->Optional->Belege->ZeroOrMore->Sequence->EinBeleg->OneOrMore->Sequence->NegativeLookahead->Sequence->Alternative->Token "*"->RegExp; MATCH; '*'
Artikel->Required->BedeutungsPosition->Sequence->Bedeutung->Optional->Belege->ZeroOrMore->Sequence->Token "*"->RegExp; MATCH; '*'
Artikel->Required->BedeutungsPosition->Sequence->Bedeutung->Optional->Belege->ZeroOrMore->Sequence->EinBeleg->OneOrMore->Sequence->NegativeLookahead->Sequence->RE /\s*/->RegExp; MATCH; ''
Artikel->Required->BedeutungsPosition->Sequence->Bedeutung->Optional->Belege->ZeroOrMore->Sequence->EinBeleg->OneOrMore->Sequence->RE /\s?.*/->RegExp; MATCH; 'Catal. thes. Germ. 76,15 ...'
Artikel->Required->BedeutungsPosition->Sequence->Bedeutung->Optional->Belege->ZeroOrMore->Sequence->EinBeleg->OneOrMore->Sequence->NegativeLookahead->Sequence->RE /\s*/->RegExp; MATCH; '\n '
Artikel->Required->BedeutungsPosition->Sequence->Bedeutung->Optional->Belege->ZeroOrMore->Sequence->EinBeleg->OneOrMore->Sequence->RE /\s?.*/->RegExp; MATCH; '\n II. 24,8 -itella X. 1...'
Artikel->Required->BedeutungsPosition->Sequence->Bedeutung->Optional->Belege->ZeroOrMore->Sequence->EinBeleg->OneOrMore->Sequence->NegativeLookahead->Sequence->RE /\s*/->RegExp; MATCH; '\n '
Artikel->Required->BedeutungsPosition->Sequence->Bedeutung->Optional->Belege->ZeroOrMore->Sequence->EinBeleg->OneOrMore->Sequence->RE /\s?.*/->RegExp; MATCH; '\n VII. 92,6 fascercule t...'
Artikel->Required->BedeutungsPosition->Sequence->Bedeutung->Optional->Belege->ZeroOrMore->Sequence->EinBeleg->OneOrMore->Sequence->NegativeLookahead->Sequence->RE /\s*/->RegExp; MATCH; '\n '
Artikel->Required->BedeutungsPosition->Sequence->Bedeutung->Optional->Belege->ZeroOrMore->Sequence->EinBeleg->OneOrMore->Sequence->NegativeLookahead->Sequence->Alternative->Token "ZUSATZ"->RegExp; MATCH; 'ZUSATZ'
Artikel->Required->BedeutungsPosition->Sequence->Bedeutung->Optional->Belege->ZeroOrMore->Sequence->EinBeleg->Optional->Zusatz->Token "ZUSATZ"->RegExp; MATCH; 'ZUSATZ'
Artikel->Required->BedeutungsPosition->Sequence->Bedeutung->Optional->Belege->ZeroOrMore->Sequence->EinBeleg->Optional->Zusatz->RE /\s?.*/->RegExp; MATCH; 'saepe.'
Artikel->Required->BedeutungsPosition->Sequence->Token "BEDEUTUNG"->RegExp; MATCH; 'BEDEUTUNG'
Artikel->Required->BedeutungsPosition->Sequence->Bedeutung->Alternative->Interpretamente->LateinischeBedeutung->Token "LAT"->RegExp; MATCH; 'LAT'
Artikel->Required->BedeutungsPosition->Sequence->Bedeutung->Alternative->Interpretamente->LateinischeBedeutung->RE /(?:(?![A-ZÄÖÜ][A-ZÄÖÜ]).)+/->RegExp; MATCH; 'capital, rica'
Artikel->Required->BedeutungsPosition->Sequence->Bedeutung->Alternative->Interpretamente->DeutscheBedeutung->Token "DEU"->RegExp; MATCH; 'DEU'
Artikel->Required->BedeutungsPosition->Sequence->Bedeutung->Alternative->Interpretamente->DeutscheBedeutung->RE /(?:(?![A-ZÄÖÜ][A-ZÄÖÜ]).)+/->RegExp; MATCH; 'Kopftuch'
Artikel->Required->BedeutungsPosition->Sequence->Bedeutung->Optional->Belege->Token "BELEGE"->RegExp; MATCH; 'BELEGE'
Artikel->Required->BedeutungsPosition->Sequence->Bedeutung->Optional->Belege->ZeroOrMore->Sequence->Token "*"->RegExp; MATCH; '*'
Artikel->Required->BedeutungsPosition->Sequence->Bedeutung->Optional->Belege->ZeroOrMore->Sequence->EinBeleg->OneOrMore->Sequence->NegativeLookahead->Sequence->RE /\s*/->RegExp; MATCH; ''
Artikel->Required->BedeutungsPosition->Sequence->Bedeutung->Optional->Belege->ZeroOrMore->Sequence->EinBeleg->OneOrMore->Sequence->RE /\s?.*/->RegExp; MATCH; 'Transl. Libor. I 32 rap...'
Artikel->Required->BedeutungsPosition->Sequence->Bedeutung->Optional->Belege->ZeroOrMore->Sequence->EinBeleg->OneOrMore->Sequence->NegativeLookahead->Sequence->RE /\s*/->RegExp; MATCH; '\n'
Artikel->Required->BedeutungsPosition->Sequence->Bedeutung->Optional->Belege->ZeroOrMore->Sequence->EinBeleg->OneOrMore->Sequence->NegativeLookahead->Sequence->Alternative->Token "*"->RegExp; MATCH; '*'
Artikel->Required->BedeutungsPosition->Sequence->Bedeutung->Optional->Belege->ZeroOrMore->Sequence->Token "*"->RegExp; MATCH; '*'
Artikel->Required->BedeutungsPosition->Sequence->Bedeutung->Optional->Belege->ZeroOrMore->Sequence->EinBeleg->OneOrMore->Sequence->NegativeLookahead->Sequence->RE /\s*/->RegExp; MATCH; ''
Artikel->Required->BedeutungsPosition->Sequence->Bedeutung->Optional->Belege->ZeroOrMore->Sequence->EinBeleg->OneOrMore->Sequence->RE /\s?.*/->RegExp; MATCH; 'II 20 nuditatem membro...'
Artikel->Required->BedeutungsPosition->Sequence->Bedeutung->Optional->Belege->ZeroOrMore->Sequence->EinBeleg->OneOrMore->Sequence->NegativeLookahead->Sequence->RE /\s*/->RegExp; MATCH; '\n '
Artikel->Required->BedeutungsPosition->Sequence->Bedeutung->Optional->Belege->ZeroOrMore->Sequence->EinBeleg->OneOrMore->Sequence->RE /\s?.*/->RegExp; MATCH; '\n clerici et laici inp...'
Artikel->Required->BedeutungsPosition->Sequence->Bedeutung->Optional->Belege->ZeroOrMore->Sequence->EinBeleg->OneOrMore->Sequence->NegativeLookahead->Sequence->RE /\s*/->RegExp; MATCH; '\n\n\n'
Artikel->Required->BedeutungsPosition->Sequence->Bedeutung->Optional->Belege->ZeroOrMore->Sequence->EinBeleg->OneOrMore->Sequence->NegativeLookahead->Sequence->Alternative->Token "AUTOR"->RegExp; MATCH; 'AUTOR'
Artikel->Required->Autorinfo->Alternative->Token "AUTORIN"->RegExp; MATCH; 'AUTORIN'
Artikel->Required->Autorinfo->Name->WORT->RegExp; MATCH; 'Weber'
Artikel->Required->Autorinfo->Name->ZeroOrMore; MATCH; ''
Artikel->Optional->LEER->RegExp; MATCH; ''
\ No newline at end of file
......@@ -118,19 +118,23 @@
</EinBeleg>
<EinBeleg>
Form. Sangall. 39 p. 421,16 "munuscula ... direximus, hoc est palliolum ... ,
-as duas."
-as duas."
</EinBeleg>
<EinBeleg>
Catal. thes. Germ. 18,7 "-eterculi viginti quatuor".
</EinBeleg>
<EinBeleg>
Libri confrat. I app. A 6 p. 137,30 "pulpitum ... -a cocco imaginata
circumdari iussit pontifex."
circumdari iussit pontifex."
</EinBeleg>
<EinBeleg>
Catal. thes. Germ. 76,15 -rulae II. 40,5 VI vizregule. 129a,5 -sterculas
II. 24,8 -itella X. 114,8 VIII fezdregle. 6,24 fasciutercule
VII. 92,6 fascercule tres. 21,20 IIII festregele.
II. 24,8 -itella X. 114,8 VIII fezdregle. 6,24 fasciutercule
VII. 92,6 fascercule tres. 21,20 IIII festregele.
saepe.
</EinBeleg>
</Belege>
......@@ -150,7 +154,8 @@
</EinBeleg>
<EinBeleg>
II 20 nuditatem membrorum illius (puellae) tegere festinarunt fideles
clerici et laici inprimis cum eorum -cula, dein vestibus solitis.
clerici et laici inprimis cum eorum -cula, dein vestibus solitis.
</EinBeleg>
</Belege>
</Bedeutung>
......
This diff is collapsed.
......@@ -4,7 +4,7 @@ def PopRetrieveScanner(text):
### DON'T EDIT OR REMOVE THIS LINE ###
class PopRetrieveGrammar(ParserCenter):
class PopRetrieveGrammar(GrammarBase):
r"""Parser for a PopRetrieve source file, with this grammar:
document = { text | codeblock }
......@@ -13,7 +13,7 @@ class PopRetrieveGrammar(ParserCenter):
delimiter_sign = /`+/
text = /[^`]+/
"""
source_hash__ = "525d71c131f2dfeed4edeec81070201c"
source_hash__ = "a87c48db3e6abbf554ab452a946e6a3c"
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, ParserCenter
Alternative, Sequence, Token, compile_python_object, compileDSL, GrammarBase
arithmetic_EBNF = r"""
expression = term { ("+" | "-") term}
......@@ -103,7 +103,7 @@ class EBNFGrammar(ParserRoot):
"""
class LeftRecursiveGrammar(ParserCenter):
class LeftRecursiveGrammar(GrammarBase):
"""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