Handbook
Glossary
IH{
Factor handbook
»
The language
»
Syntax
»
Literals
»
Hashtable syntax
Prev:
H{
Vocabulary
syntax
Syntax
IH{ { key value }... }
Inputs
None
Outputs
None
Word description
Marks the beginning of a literal identity hashtable, given as a list of two-element arrays holding key/value pairs. Literal identity hashtables are terminated by
}
.
Examples
IH{ { "tuna" "fish" } { "jalapeno" "vegetable" } }
Definition
USING:
hashtables.identity
parser
;
IN:
syntax
SYNTAX:
IH{
\
}
[
>identity-hashtable
]
parse-literal
;