]> gitweb.factorcode.org Git - factor.git/commitdiff
Put '..' around parser error messages
authorChris Double <chris@bethia.(none)>
Thu, 19 Jun 2008 02:34:09 +0000 (14:34 +1200)
committerChris Double <chris@bethia.(none)>
Thu, 19 Jun 2008 02:34:09 +0000 (14:34 +1200)
extra/peg/ebnf/ebnf.factor

index 08ac24e5357a39bbd9b1f0051d1e7e5092b25c03..2aec8b9aea09ccd5cb573a0d9941135aa5da5094 100644 (file)
@@ -416,7 +416,7 @@ M: ebnf-terminal (transform) ( ast -- parser )
 \r
 M: ebnf-foreign (transform) ( ast -- parser )\r
   dup word>> search\r
-  [ "Foreign word " swap word>> append " not found" append throw ] unless*\r
+  [ "Foreign word '" swap word>> append "' not found" append throw ] unless*\r
   swap rule>> [ main ] unless* dupd swap rule [\r
     nip\r
   ] [\r
@@ -425,7 +425,7 @@ M: ebnf-foreign (transform) ( ast -- parser )
 \r
 : parser-not-found ( name -- * )\r
   [\r
-    "Parser " % % " not found." %\r
+    "Parser '" % % "' not found." %\r
   ] "" make throw ;\r
 \r
 M: ebnf-non-terminal (transform) ( ast -- parser )\r