Class XMQCliParser

java.lang.Object
org.libxmq.imp.XMQCliParser

public final class XMQCliParser extends Object
A parser generated from library/xmq-utils/xmqcli.ixml.
  • Method Details

    • parse

      public static XmlDocument parse(String input) throws XMQCliParser.ParseError
      Parse the input and return the ixml parse tree.
      Parameters:
      input - The input.
      Returns:
      The parse tree.
      Throws:
      XMQCliParser.ParseError - If the input does not match the grammar.
    • main

      public static void main(String[] args) throws Exception
      Parse a file (or stdin) and print the tree like xmq.
      Parameters:
      args - The file name, or nothing for stdin.
      Throws:
      Exception - If the file cannot be read.