]> gitweb.factorcode.org Git - factor.git/commitdiff
peg: Don't need to add empty errors here. It breaks the real error message.
authorDoug Coleman <doug.coleman@gmail.com>
Wed, 30 Mar 2016 15:25:36 +0000 (08:25 -0700)
committerDoug Coleman <doug.coleman@gmail.com>
Wed, 30 Mar 2016 17:16:15 +0000 (10:16 -0700)
basis/peg/peg.factor

index ad386dbbe85ee49f9918065aad880f0d447f5be3..0a8365899f92b6d81ec0f2affcf80e0f2ebdc387 100644 (file)
@@ -330,7 +330,7 @@ TUPLE: token-parser symbol ;
 : parse-token ( input string -- result )
     ! Parse the string, returning a parse result
     [ ?head-slice ] keep swap [
-        <parse-result> f f f add-error
+        <parse-result>
     ] [
         [ seq>> pos get swap ] dip "'" "'" surround 1vector add-error f
     ] if ;