(parse-char) ( quot: ( ch -- ? ) accum spot -- )


Vocabulary
xml.tokenize

Inputs
quota quotation with stack effect ( ch -- ? )
accuman object
spotan object


Outputs
None

Definition


:: (parse-char) ( quot: ( ch -- ? ) accum spot -- )
[
spot char>> :> char {
{ [ char not ] [ f ] }
{ [ char quot call ] [ spot next* f ] }
{ [ char 38 eq? ] [ accum parse-entity t ] }
{
[ char 37 eq? [ in-dtd? get ] [ f ] if ]
[ accum parse-pe t ]
}
[ char accum push spot next* t ]
} cond
] loop ; inline