Class MdoParser
- java.lang.Object
-
- com._1c.g5.v8.dt.md.gumtree.tree.generator.MdoParser
-
public class MdoParser extends Object
A helper to generate an AST for a mdo file.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.eclipse.emf.ecore.EObject
generateAST(String content, Charset encoding)
Generates the Xtext AST for the given 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 nullencoding
- 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
-
-