parse-datum ( string -- word/number )


Vocabulary
parser

Inputs
stringa string


Outputs
word/numbera word or a number


Word description
If string is a valid number literal, it is converted to a number, otherwise the current vocabulary search path is searched for a word named by the string.

Errors
Throws an error if the token does not name a word, and does not parse as a number.

Notes
This word is used to implement ?scan-datum and scan-datum.

Definition