orangeduck / mpc

A Parser Combinator library for C
Other
2.69k stars 294 forks source link

parser combinators #106

Open mgood7123 opened 5 years ago

mgood7123 commented 5 years ago

how would i design the and of a parser combinator so that i do not need to create an infinite number of functions for it

mgood7123 commented 5 years ago

https://rosettacode.org/wiki/Parsing/RPN_calculator_algorithm can this be applied to a parser combinator? For example, (A && B) || C would become A B && C || and then parsed using the RPN Calculator Algorithm ?

as i am having trouble figuring out how to correctly implement parenthesis parsing so i can then parse combinational logic such as A and B or C instead of only A and B and C or A or B or C