I’m trying to figure out how to teach a dynamic recursive parser combinator to h...
Luna Dragofelis ΘΔ🏳️⚧️🐱& @LunaDragofelis@void.lgbt
I’m trying to figure out how to teach a dynamic recursive parser combinator to handle left recursion. So far I figured out how to detect left recursion during parsing.
Basically I need to rewrite ab = ab b | a into ab = a b*, and I’m trying to do it while parsing ab. I have figured out how to effectively make it into ab = a b? already, I’m trying to figure out how to make it able to match arbitrary counts of b. (PEG syntax used for examples)