Bug in peg parser for double-quotes?

2018-02-24 Thread Mark Carter
I'm trying to use peg pattern matching to match quoted strings. It's not complete, but I think I found a bug that is holding me back. consider the following code: (use-modules (ice-9 peg string-peg)) (use-modules (ice-9 peg using-parsers)) (define-peg-pattern DQ body "\"") (define-peg-pattern a

Re: Bug in peg parser for double-quotes?

2018-02-24 Thread Mark Carter
My bad. I needed to do something like: (define-peg-string-patterns "astring <-- DQ .*") My original definition as (define-peg-pattern astring body "(DQ .*)") was just wrong.