Uses of Class
org.libxmq.imp.ixml.earley.Grammar
Packages that use Grammar
-
Uses of Grammar in org.libxmq.imp.ixml.earley
Methods in org.libxmq.imp.ixml.earley that return GrammarModifier and TypeMethodDescriptionstatic GrammarBuild the Earley grammar from an ixml grammar source.Earley.Result.grammar()Returns the value of thegrammarrecord component.Methods in org.libxmq.imp.ixml.earley with parameters of type GrammarModifier and TypeMethodDescriptionstatic Earley.ResultParse the input with the grammar.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 XmlDocumentSerialize the tree of the start rule.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 GrammarModifierConstructorDescriptionEarleyParser(Grammar grammar) Create a parser for the grammar.Result(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.