Better error message for syntax error in : foo ( : bar
parent
19d8a6a552
commit
9e9116f0ea
|
@ -15,6 +15,7 @@ ERROR: bad-effect ;
|
||||||
scan {
|
scan {
|
||||||
{ "(" [ ")" parse-effect ] }
|
{ "(" [ ")" parse-effect ] }
|
||||||
{ f [ ")" unexpected-eof ] }
|
{ f [ ")" unexpected-eof ] }
|
||||||
|
[ bad-effect ]
|
||||||
} case 2array
|
} case 2array
|
||||||
] when
|
] when
|
||||||
] if
|
] if
|
||||||
|
@ -31,4 +32,4 @@ ERROR: bad-effect ;
|
||||||
"(" expect ")" parse-effect ;
|
"(" expect ")" parse-effect ;
|
||||||
|
|
||||||
: parse-call( ( accum word -- accum )
|
: parse-call( ( accum word -- accum )
|
||||||
[ ")" parse-effect ] dip 2array over push-all ;
|
[ ")" parse-effect ] dip 2array over push-all ;
|
||||||
|
|
Loading…
Reference in New Issue