pdarragh / Kelpy

A parser and interpreter for a made-up Polish prefix language.
1 stars 0 forks source link

Fix kexp_match #15

Open pdarragh opened 9 years ago

pdarragh commented 9 years ago

It seems that the kexp_match function cannot parse through nested brace expressions... I imagine somewhere I've told it to parse subexpressions before checking the symbols and the string literally. This needs to be reevaluated.

To reproduce: write any lambda function with no arguments. The parser fails to recognize this type of expression.

pdarragh commented 9 years ago

Actually, it looks like the repeat parse operator ... is being treated as "one or more" instead of "zero or more"... so this must be adjusted.