Package org.libxmq.imp.ixml.earley


package org.libxmq.imp.ixml.earley
  • Class
    Description
    The result of the Earley recognizer: one Earley set for each input position, from 0 (before the first code point) to n (after the last).
    The input is not valid UTF-8.
    Parse an input with an ixml grammar using the Earley parser, in four steps: 1.
    The result of a parse: a document, or an error at a position.
    A plain Earley recognizer.
    What may come next at a position, in a grammar rule.
    The Earley set for one input position: the items that are alive there.
    Record what the Earley parser did: as a trace document (toXml), the same as xmq --traceixml=file records, or (write) in the same line format as the C parser (xmq --debug=ixml.), so that OpenMike/parse-trace.ixml and OpenMike/render-trace.xslq can visualize it, see OpenMike/debug-ixml-java.sh.
    The ixml grammar as the Earley parser sees it: rules with productions, where each production is a sequence of symbols.
    A call of a rule.
    A terminal: one code point from a set.
    An insertion, +'text': outputs the text, matches no input.
    A negative lookahead, !'
    One alternative of a rule: rule → symbol symbol ...
    A rule: the left hand side of its productions.
    A symbol in a production.
    An Earley item: a production with a dot showing how much of it has been matched, and the origin, the input position where the match started.
    The tokens of the Earley parser, like the terminals of yaep in the C version, see doc/parse_ixml_fast.md.
    A node in the parse tree chosen by TreeBuilder
    Compose the parse tree from a chart that accepted the input.
    A node added to the tree: a production over a span of the input.
    Decode UTF-8 directly from a byte buffer, one code point at a time.
    Serialize a parse tree into an xml document, following the ixml marks: - ^ (or no mark) a rule becomes an element, with its content inside. - @ a rule becomes an attribute of the nearest element, its value is the text of everything inside it. - - a hidden rule, its content goes directly into its parent.
    A dynamic error, eg D02, found when serializing.