Package org.eolang.parser
Class Syntax
- java.lang.Object
-
- org.eolang.parser.Syntax
-
public final class Syntax extends Object
Syntax parser, from EO to XMIR, using ANTLR4.- Since:
- 0.1
-
-
Constructor Detail
-
Syntax
public Syntax(String nme, org.cactoos.Input ipt, org.cactoos.Output tgt)
Ctor.- Parameters:
nme
- The name of itipt
- Input texttgt
- Target
-
-
Method Detail
-
parse
public void parse() throws IOException
Compile it to XML and save.No exception will be thrown if the syntax is invalid. In any case, XMIR will be generated and saved. Read it in order to find the errors, at /program/errors XPath.
- Throws:
IOException
- If fails
-
-