Replies: 3 comments
-
PEG parsing is eager, and each match eats the maximal much, without any backtracking within a rule. You likely want to match {everything other than |
Beta Was this translation helpful? Give feedback.
-
Thank you, I figured out too. but I later tried
and
|
Beta Was this translation helpful? Give feedback.
-
See https://pest.rs/book/grammars/syntax.html#predicates - |
Beta Was this translation helpful? Give feedback.
-
trying to create a parser for plantuml, ANY doesn't match alphabets,
https://plantuml.com/sequence-diagram
sample code:
test.pest
main.rs
output
if I change ANY to ASCII_ALPHA, it would work. I don't understand. looks like a bug to me.
Beta Was this translation helpful? Give feedback.
All reactions