Handbook
Glossary
resolve-normal-plain-scalar ( str -- tag )
Vocabulary
yaml
.
conversion
Inputs
str
an
object
Outputs
tag
an
object
Definition
USING:
combinators.extras
kernel
regexp
yaml.ffi
;
IN:
yaml.conversion
:
resolve-normal-plain-scalar
( str -- tag )
{
{
[
re-null
matches?
]
[
YAML_NULL_TAG
]
}
{
[
re-empty
matches?
]
[
YAML_NULL_TAG
]
}
{
[
re-bool
matches?
]
[
YAML_BOOL_TAG
]
}
{
[
re-int10
matches?
]
[
YAML_INT_TAG
]
}
{
[
re-int8
matches?
]
[
YAML_INT_TAG
]
}
{
[
re-int16
matches?
]
[
YAML_INT_TAG
]
}
{
[
re-number
matches?
]
[
YAML_FLOAT_TAG
]
}
{
[
re-infinity
matches?
]
[
YAML_FLOAT_TAG
]
}
{
[
re-nan
matches?
]
[
YAML_FLOAT_TAG
]
}
{
[
re-timestamp
matches?
]
[
YAML_TIMESTAMP_TAG
]
}
[
drop
YAML_STR_TAG
]
}
cond-case
;