]> gitweb.factorcode.org Git - factor.git/commitdiff
Better error message for syntax error in : foo ( : bar
authorDaniel Ehrenberg <littledan@pool-116-90.res.carleton.edu>
Wed, 1 Apr 2009 04:18:52 +0000 (23:18 -0500)
committerDaniel Ehrenberg <littledan@pool-116-90.res.carleton.edu>
Wed, 1 Apr 2009 04:18:52 +0000 (23:18 -0500)
core/effects/parser/parser.factor

index b9cb0ddcc9e101e127de7bb84de0be3debb55888..c8ed6da2aa3ce77cbcc906e255f1a7baec8e404c 100644 (file)
@@ -15,6 +15,7 @@ ERROR: bad-effect ;
                 scan {
                     { "(" [ ")" parse-effect ] }
                     { f [ ")" unexpected-eof ] }
+                    [ bad-effect ]
                 } case 2array
             ] when
         ] if
@@ -31,4 +32,4 @@ ERROR: bad-effect ;
     "(" expect ")" parse-effect ;
 
 : parse-call( ( accum word -- accum )
-    [ ")" parse-effect ] dip 2array over push-all ;
\ No newline at end of file
+    [ ")" parse-effect ] dip 2array over push-all ;