Closed customcommander closed 4 years ago
Apologies in advance for cross-posting. (See my question on Stack Overflow.)
TL; DR
I'm really struggling to come up with a rule that can either match until end of line or until next non-terminal rule.
I'm trying to write a parser for RIS content:
RIS
KW - foo KW - bar KW - baz
Extracting foo, bar and baz is easy but things get complicated when KW spans across multiple line:
foo
bar
baz
KW
KW - foo bar KW - baz
Is this something that Nearly can handle? Any tips towards the right direction would be greatly appreciated.
Many thanks.
I managed to find a solution thanks to @airportyh !
Apologies in advance for cross-posting. (See my question on Stack Overflow.)
TL; DR
I'm really struggling to come up with a rule that can either match until end of line or until next non-terminal rule.
I'm trying to write a parser for
RIS
content:Extracting
foo
,bar
andbaz
is easy but things get complicated whenKW
spans across multiple line:Is this something that Nearly can handle? Any tips towards the right direction would be greatly appreciated.
Many thanks.