unexpected ( want got -- * ) - Factor Documentation

unexpected ( want got -- * )


Vocabulary
lexer

Inputs
want a word or f
got a word


Outputs
None

Word description
Throws an unexpected error.

Error description
Thrown by the parser if an unmatched closing delimiter is encountered.

Examples
Parsing the following snippet will throw this error:
[ 1 2 3 }


Definition
IN: lexer

ERROR: unexpected want got ;


Methods
USING: accessors debugger io kernel lexer ;

M: unexpected error.
"Expected " write dup want>> expected>string write
" but got " write got>> expected>string print ;

AltStyle によって変換されたページ (->オリジナル) /