Class MdoParser


  • public class MdoParser
    extends Object
    A helper to generate an AST for a mdo file.
    • Method Detail

      • generateAST

        public static org.eclipse.emf.ecore.EObject generateAST​(String content,
                                                                Charset encoding)
                                                         throws com._1c.g5.gumtree.core.tree.TreeGeneratorException
        Generates the Xtext AST for the given mdo file.
        Parameters:
        content - the content of the given mdo file, not null
        encoding - the encoding of the given mdo file, not null
        Returns:
        the root of the built tree
        Throws:
        com._1c.g5.gumtree.core.tree.TreeGeneratorException - if there are syntax errors in the given mdo file