(For a detailed context of this issue, see
STR-26)
If an sdf contains:
"(" {Foo ","}2+ ")" -> Bar {cons("TwoOrMore")}
The pp entry by pp-gen is:
TwoOrMore -- KW["("] _1 KW[")"],
TwoOrMore.1:iter-sep-n -- _1 KW[","] _2,
TwoOrMore.1:iter-sep-n.2:"2" -- ,
and, when feeding this to parse-pp-table, the following error occurs:
[
adam@freshwater adam]$ parse-pp-table -i niter-test.pp -o niter-test.pp.af
sglr: error in niter-test.pp, line 4, col 29: character `"' (\x22) unexpected
parse-pp-table: rewriting failed
(line 4, col 29) is the first " in "2"
ConsName "." {Selector "."}+ -> Path {cons("Path")}
NatCon ":" UQLiteral -> Selector {cons("selector")}
It's probably in the UQLiteral. I don't whether it's safe to make the a Literal (i.e. either QLiteral or UQLiteral)?
Or maybe it's the pp-gen that should not have output a quoted literal "2" in the first place.