Uses of Class
org.libxmq.imp.ixml.earley.Chart
Packages that use Chart
-
Uses of Chart in org.libxmq.imp.ixml.earley
Methods in org.libxmq.imp.ixml.earley that return ChartModifier and TypeMethodDescriptionEarley.Result.chart()Returns the value of thechartrecord component.EarleyParser.recognize(byte[] buf, int start, int stop) Run the recognizer over the input.Methods in org.libxmq.imp.ixml.earley with parameters of type ChartModifier and TypeMethodDescriptionbooleanReturns true if the chart accepts the whole input: the last set has a complete item of the start rule that began at position 0.What the parser could read at the position: the terminals right after the dot of the items in the set, with the characters that follow them in the item, and the end of the input if the start rule is complete there.intEarleyParser.failurePosition(Chart chart) The position of the first code point that could not be parsed: the last set that has items.voidEarleyParser.removeForbiddenByNots(Chart chart) Remove the items that a not forbids, from the finished chart, before the tree is built.static XmlDocumentEarleyTrace.toXml(Grammar grammar, Chart chart, List<TreeBuilder.Step> tree_steps) The trace as a document, the same as the C version records (xmq --traceixml=file):static voidEarleyTrace.write(PrintStream out, Grammar grammar, Chart chart, Tree tree, List<TreeBuilder.Step> steps) Write the trace.Constructors in org.libxmq.imp.ixml.earley with parameters of type ChartModifierConstructorDescriptionResult(XmlDocument doc, String error, int position, Grammar grammar, Chart chart, Tree tree, List<TreeBuilder.Step> steps, List<EarleyParser.Expected> expected) Creates an instance of aResultrecord class.TreeBuilder(Chart chart, Grammar grammar) Create a builder for an accepted chart.