Commit 39ea46fb authored by di68kap's avatar di68kap
Browse files

- MLW ergänzt

parent fc3aa0d1
...@@ -86,8 +86,8 @@ ArtikelKopf = < SchreibweisenPosition | StrukturPosition | GebrauchPositio ...@@ -86,8 +86,8 @@ ArtikelKopf = < SchreibweisenPosition | StrukturPosition | GebrauchPositio
SchreibweisenPosition = "SCHREIBWEISE" [LZ] { SWKategorie }+ SchreibweisenPosition = "SCHREIBWEISE" [LZ] { SWKategorie }+
SWKategorie = SWTyp DPP [LZ] §(Varianten | { SWKategorie }+) [LZ] SWKategorie = SWTyp §DPP [LZ] ( Varianten | { SWKategorie }+ ) [LZ]
SWTyp = scriptfat | scriptform | script | form | gen | abl | OFFEN SWTyp = scriptfat | scriptform | script | form | gen | abl | FREITEXT
scriptfat = "script." "fat-" scriptfat = "script." "fat-"
scriptform = "script. " "form" scriptform = "script. " "form"
...@@ -97,34 +97,33 @@ form = "form" ...@@ -97,34 +97,33 @@ form = "form"
gen = "gen." gen = "gen."
abl = "abl." abl = "abl."
OFFEN = FREITEXT
#### STRUKTUR-POSITION ####################################################### #### STRUKTUR-POSITION #######################################################
StrukturPosition = "STRUKTUR" [LZ] { STKategorie }+ StrukturPosition = "STRUKTUR" [LZ] §{ STKategorie }+
STKategorie = STTyp DPP [LZ] §(Varianten | { STKategorie }+) [LZ] STKategorie = STTyp §DPP [LZ] ( Varianten | { STKategorie }+ ) [LZ]
STTyp = "form." ZEICHENFOLGE STTyp = ZEICHENFOLGE
#### GEBRAUCH-POSITION ####################################################### #### GEBRAUCH-POSITION #######################################################
GebrauchPosition = "GEBRAUCH" GebrauchPosition = "GEBRAUCH" [LZ] §{ GBKategorie }+
GBKategorie = GBTyp §DPP [LZ] ( Varianten | { GBKategorie }+ ) [LZ]
GBTyp = ZEICHENFOLGE
#### METRIK-POSITION ######################################################### #### METRIK-POSITION #########################################################
MetrikPosition = "METRIK" MetrikPosition = "METRIK" [LZ] §{ MTKategorie }+
MTKategorie = MTTyp §DPP [LZ] ( Varianten | { MTKategorie }+ ) [LZ]
MTTyp = ZEICHENFOLGE
#### VERWECHSLUNGS-POSITION ################################################## #### VERWECHSLUNGS-POSITION ##################################################
VerwechslungsPosition = "VERWECHSELBAR" [LZ] [Confunditur] VerwechselungsPosition = "VERWECHSELBAR" [LZ] §{ VWKategorie }+
VerwechselungsVariante { ABS VerwechselungsVariante }+ [LZ] VWKategorie = VWTyp §DPP [LZ] ( Varianten | { VWKategorie }+ ) [LZ]
Confunditur = "confunditur c." DPP [LZ] VWTyp = ZEICHENFOLGE
VerwechselungsVariante = !KATEGORIENZEILE Verwechselung DPP Beleg
Verwechselung = ZEICHENFOLGE
#### ARTIKELKOPF POSITIONEN VARIANTEN ######################################## #### ARTIKELKOPF POSITIONEN VARIANTEN ########################################
......
This diff is collapsed.
line: 81, column: 40, Error: Missing definition for symbol 'VerwechselungsPosition' line: 191, column: 1, Warning: Rule "VerweisZiel" is not connected to parser root "Artikel" !
line: 126, column: 1, Warning: Rule "VerwechslungsPosition" is not connected to parser root "Artikel" ! line: 207, column: 1, Warning: Rule "DEU_GROSS" is not connected to parser root "Artikel" !
line: 128, column: 1, Warning: Rule "Confunditur" is not connected to parser root "Artikel" ! line: 208, column: 1, Warning: Rule "DEU_KLEIN" is not connected to parser root "Artikel" !
line: 129, column: 1, Warning: Rule "VerwechselungsVariante" is not connected to parser root "Artikel" ! line: 211, column: 1, Warning: Rule "GROSSSCHRIFT" is not connected to parser root "Artikel" !
line: 130, column: 1, Warning: Rule "Verwechselung" is not connected to parser root "Artikel" ! line: 215, column: 1, Warning: Rule "SATZZEICHEN" is not connected to parser root "Artikel" !
line: 188, column: 1, Warning: Rule "VerweisZiel" is not connected to parser root "Artikel" ! line: 219, column: 1, Warning: Rule "ERW_FREITEXT" is not connected to parser root "Artikel" !
line: 204, column: 1, Warning: Rule "DEU_GROSS" is not connected to parser root "Artikel" ! line: 236, column: 1, Warning: Rule "RZS" is not connected to parser root "Artikel" !
line: 205, column: 1, Warning: Rule "DEU_KLEIN" is not connected to parser root "Artikel" ! line: 243, column: 1, Warning: Rule "NIEMALS" is not connected to parser root "Artikel" !
line: 208, column: 1, Warning: Rule "GROSSSCHRIFT" is not connected to parser root "Artikel" ! line: 245, column: 1, Warning: Rule "DUMMY" is not connected to parser root "Artikel" !
line: 212, column: 1, Warning: Rule "SATZZEICHEN" is not connected to parser root "Artikel" !
line: 216, column: 1, Warning: Rule "ERW_FREITEXT" is not connected to parser root "Artikel" !
line: 233, column: 1, Warning: Rule "RZS" is not connected to parser root "Artikel" !
line: 240, column: 1, Warning: Rule "NIEMALS" is not connected to parser root "Artikel" !
line: 242, column: 1, Warning: Rule "DUMMY" is not connected to parser root "Artikel" !
Test of parser: "SCHLUESSELWORT"
================================
Match-test "m1"
---------------
### Test-code:
AUTORIN
### AST
(SCHLUESSELWORT
(:RegExp
""
""
)
(:RegExp
"AUTORIN "
)
)
Test of parser: "RZS" Test of parser: "RZS"
===================== =====================
Match-test "1" Match-test "m1"
-------------- ---------------
### Test-code: ### Test-code:
...@@ -22,8 +45,8 @@ Test of parser: "LEERZEILE" ...@@ -22,8 +45,8 @@ Test of parser: "LEERZEILE"
=========================== ===========================
Match-test "1" Match-test "m1"
-------------- ---------------
### Test-code: ### Test-code:
...@@ -39,8 +62,8 @@ Match-test "1" ...@@ -39,8 +62,8 @@ Match-test "1"
) )
) )
Match-test "2" Match-test "m2"
-------------- ---------------
### Test-code: ### Test-code:
...@@ -59,8 +82,8 @@ Match-test "2" ...@@ -59,8 +82,8 @@ Match-test "2"
) )
) )
Match-test "3" Match-test "m3"
-------------- ---------------
### Test-code: ### Test-code:
...@@ -78,13 +101,31 @@ Match-test "3" ...@@ -78,13 +101,31 @@ Match-test "3"
) )
) )
Fail-test "f1"
--------------
### Test-code:
Fail-test "f2"
--------------
### Test-code:
# Kommentar
# Kommentar
Test of parser: "LÜCKE" Test of parser: "LÜCKE"
======================= =======================
Match-test "1" Match-test "m1"
-------------- ---------------
### Test-code: ### Test-code:
...@@ -102,8 +143,8 @@ Match-test "1" ...@@ -102,8 +143,8 @@ Match-test "1"
) )
) )
Match-test "2" Match-test "m2"
-------------- ---------------
### Test-code: ### Test-code:
...@@ -131,8 +172,8 @@ Match-test "2" ...@@ -131,8 +172,8 @@ Match-test "2"
) )
) )
Match-test "3" Match-test "m3"
-------------- ---------------
### Test-code: ### Test-code:
...@@ -152,8 +193,8 @@ Match-test "3" ...@@ -152,8 +193,8 @@ Match-test "3"
) )
) )
Match-test "4" Match-test "m4"
-------------- ---------------
### Test-code: ### Test-code:
...@@ -196,8 +237,8 @@ Match-test "4" ...@@ -196,8 +237,8 @@ Match-test "4"
) )
) )
Match-test "5" Match-test "m5"
-------------- ---------------
### Test-code: ### Test-code:
#Kommentar #Kommentar
...@@ -238,13 +279,41 @@ Match-test "5" ...@@ -238,13 +279,41 @@ Match-test "5"
) )
) )
Fail-test "f1"
--------------
### Test-code:
Fail-test "f2"
--------------
### Test-code:
Fail-test "f3"
--------------
### Test-code:
# Kommentar
Fail-test "f4"
--------------
### Test-code:
#Kommentar
# Kommentar
# Kommentar
Test of parser: "LEERRAUM" Test of parser: "LEERRAUM"
========================== ==========================
Match-test "1" Match-test "m1"
-------------- ---------------
### Test-code: ### Test-code:
...@@ -256,8 +325,8 @@ Match-test "1" ...@@ -256,8 +325,8 @@ Match-test "1"
) )
) )
Match-test "2" Match-test "m2"
-------------- ---------------
### Test-code: ### Test-code:
# Kommentar # Kommentar
...@@ -272,8 +341,8 @@ Match-test "2" ...@@ -272,8 +341,8 @@ Match-test "2"
) )
) )
Match-test "3" Match-test "m3"
-------------- ---------------
### Test-code: ### Test-code:
...@@ -285,8 +354,8 @@ Match-test "3" ...@@ -285,8 +354,8 @@ Match-test "3"
) )
) )
Match-test "4" Match-test "m4"
-------------- ---------------
### Test-code: ### Test-code:
# Kommentar # Kommentar
...@@ -298,8 +367,8 @@ Match-test "4" ...@@ -298,8 +367,8 @@ Match-test "4"
) )
) )
Match-test "5" Match-test "m5"
-------------- ---------------
### Test-code: ### Test-code:
# Kommentar # Kommentar
...@@ -316,8 +385,8 @@ Match-test "5" ...@@ -316,8 +385,8 @@ Match-test "5"
) )
) )
Match-test "6" Match-test "m6"
-------------- ---------------
### Test-code: ### Test-code:
...@@ -351,8 +420,8 @@ Match-test "6" ...@@ -351,8 +420,8 @@ Match-test "6"
) )
) )
Match-test "7" Match-test "m7"
-------------- ---------------
### Test-code: ### Test-code:
...@@ -370,13 +439,19 @@ Match-test "7" ...@@ -370,13 +439,19 @@ Match-test "7"
) )
) )
Fail-test "f1"
--------------
### Test-code:
X
Test of parser: "ZWW" Test of parser: "ZWW"
===================== =====================
Match-test "1" Match-test "m1"
-------------- ---------------
### Test-code: ### Test-code:
...@@ -392,8 +467,8 @@ Match-test "1" ...@@ -392,8 +467,8 @@ Match-test "1"
) )
) )
Match-test "2" Match-test "m2"
-------------- ---------------
### Test-code: ### Test-code:
...@@ -412,8 +487,8 @@ Match-test "2" ...@@ -412,8 +487,8 @@ Match-test "2"
) )
) )
Match-test "3" Match-test "m3"
-------------- ---------------
### Test-code: ### Test-code:
...@@ -439,8 +514,8 @@ Match-test "3" ...@@ -439,8 +514,8 @@ Match-test "3"
) )
) )
Match-test "4" Match-test "m4"
-------------- ---------------
### Test-code: ### Test-code:
...@@ -465,13 +540,19 @@ Match-test "4" ...@@ -465,13 +540,19 @@ Match-test "4"
) )
) )
Fail-test "f1"
--------------
### Test-code:
Test of parser: "ZW" Test of parser: "ZW"
==================== ====================
Match-test "1" Match-test "m1"
-------------- ---------------
### Test-code: ### Test-code:
...@@ -487,8 +568,8 @@ Match-test "1" ...@@ -487,8 +568,8 @@ Match-test "1"
) )
) )
Match-test "2" Match-test "m2"
-------------- ---------------
### Test-code: ### Test-code:
...@@ -505,4 +586,12 @@ Match-test "2" ...@@ -505,4 +586,12 @@ Match-test "2"
"# Kommentar" "# Kommentar"
) )
) )
) )
\ No newline at end of file
Fail-test "f1"
--------------
### Test-code:
\ No newline at end of file
...@@ -13,8 +13,10 @@ Match-test "1" ...@@ -13,8 +13,10 @@ Match-test "1"
### AST ### AST
(Lemma (Lemma
(LemmaWort (LemmaWort
(LAT_WORT_TEIL (LAT_WORT
"facitergula" (:RegExp
"facitergula"
)
) )
) )
) )
...@@ -25,21 +27,31 @@ Match-test "2" ...@@ -25,21 +27,31 @@ Match-test "2"
### Test-code: ### Test-code:
facitergul|a facitergul|a
### Error:
Match test "2" for parser "Lemma" failed:
Expr.: facitergul|a
line: 1, column: 11, Error: Parser stopped before end! trying to recover but stopping history recording at this point.
line: 1, column: 11, Error: Parser did not match! Invalid source file?
Most advanced: line 1, column 11: Lemma->LemmaWort->LAT_WORT->/[a-z]+/ "facitergul"
Last match: line 1, column 11: Lemma->LemmaWort->LAT_WORT->:Whitespace "";
### AST ### AST
(Lemma (__ZOMBIE__
(LemmaWort (Lemma
(LAT_WORT_TEIL (LemmaWort
"facitergul" (LAT_WORT
) (:RegExp
(:Series "facitergul"
(:Token )
"|"
)
(LAT_WORT_TEIL
"a"
) )
) )
) )
(__ZOMBIE__
"|a"
)
) )
Match-test "3" Match-test "3"
...@@ -48,23 +60,36 @@ Match-test "3" ...@@ -48,23 +60,36 @@ Match-test "3"
### Test-code: ### Test-code:
fasc|itergula fasc|itergula
### Error:
Match test "3" for parser "Lemma" failed:
Expr.: fasc|itergula