Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
badw-it
DHParser
Commits
490a8c6b
Commit
490a8c6b
authored
Dec 01, 2017
by
di68kap
Browse files
- Mittellateinisches Wörterbuch imperium.mlw vorbereitet
parent
3c06823b
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
DHParser/parser.py
View file @
490a8c6b
...
...
@@ -1271,7 +1271,7 @@ class Token(RE):
########################################################################
#
# Containing parser classes, i.e. parsers that contain other parsers
# to which they delegate
(i.e. trunk classes)
# to which they delegate
parsing
#
########################################################################
...
...
@@ -1504,7 +1504,7 @@ class Series(NaryOperator):
match
=
text
.
search
(
Series
.
RX_ARGUMENT
)
i
=
max
(
1
,
text
.
index
(
match
.
regs
[
1
][
0
]))
if
match
else
1
node
=
Node
(
self
,
text_
[:
i
])
node
.
add_error
(
'%s expected; "%s" found!'
node
.
add_error
(
'%s expected; "%s"
...
found!'
%
(
str
(
parser
),
text_
[:
10
].
replace
(
'
\n
'
,
'
\\
n '
)),
code
=
Error
.
MANDATORY_CONTINUATION
)
text_
=
text_
[
i
:]
...
...
examples/MLW/Beispiele/imperium/imperium.mlw
View file @
490a8c6b
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment