Handbook
Glossary
(processing-instruction-open-state) ( document n/f string ch/f -- document n'/f string )
Vocabulary
html5
Inputs
document
an
object
n/f
an
object
string
an
object
ch/f
an
object
Outputs
document
an
object
n'/f
an
object
string
an
object
Definition
USING:
combinators
combinators.short-circuit
kernel
;
IN:
html5
:
(processing-instruction-open-state)
( document n/f string ch/f -- document n'/f string )
{
{
[
dup
{
[
ascii-alpha?
]
[
95
=
]
}
1||
]
[
(processing-instruction-target-state)
]
}
{
[
dup
f
=
]
[
drop
"eof-in-processing-instruction"
report-parse-error
pick
emit-eof
]
}
[
"invalid-first-character-of-processing-instruction-target"
report-parse-error
[
pick
temporary-buffer>comment
]
dip
(bogus-comment-state)
]
}
cond
;