Skip to content

Commit

Permalink
tweaked Parse to make error handling more flexible and corrected an e…
Browse files Browse the repository at this point in the history
…rror in one of the comments.
  • Loading branch information
JohnEarnest committed Oct 14, 2012
1 parent ad418f0 commit 2e678e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Parse.fs
Expand Up @@ -42,7 +42,7 @@
then then
; ;


: fail ( string -- ) :vector fail ( string -- )
type type
" (line " type line @ .num " (line " type line @ .num
", char " type char @ .num ", char " type char @ .num
Expand Down Expand Up @@ -198,7 +198,7 @@


:array pad pad-size 0 :array pad pad-size 0


: accept> ( pred -- ) : accept> ( pred -- string )
>r pad pad-size r> input> trim pad >r pad pad-size r> input> trim pad
; ;


Expand Down

0 comments on commit 2e678e1

Please sign in to comment.