]> gitweb.factorcode.org Git - factor.git/commitdiff
peg.ebnf: different (better) error for peg.ebnf.semantic-action.
authorJohn Benediktsson <mrjbq7@gmail.com>
Wed, 30 Mar 2016 20:55:21 +0000 (13:55 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Wed, 30 Mar 2016 20:55:21 +0000 (13:55 -0700)
basis/peg/ebnf/ebnf-docs.factor

index 89455ba7e26a78ab636decc00e2eb74df20a98b4..d17003c53d51cc6b6153f4c08ad55009c2ff3fb5 100644 (file)
@@ -308,7 +308,7 @@ ARTICLE: "peg.ebnf.semantic-action" "EBNF Semantic Action"
     { $example
        "USING: prettyprint peg.ebnf math math.parser ;"
        "\"2\" [EBNF rule=[0-9] ?[ digit> odd? ]? EBNF] ."
-       "Sequence index out of bounds\nindex 0\nseq   V{ }"
+       "Peg parsing error at character position 0.\nExpected \nGot '2'"
     }
 }
 ;