- java.lang.Object
-
- io.fixprotocol.md.antlr.InteractiveTest
-
- All Implemented Interfaces:
Runnable
public class InteractiveTest extends Object implements Runnable
Interactive tester for markdown grammarTo start a test session, enter this command line:
java -jar md-grammar-[version]-jar-with-dependencies.jar
The interactive tester evaluates expressions that you enter. It waits until the end of input to start evaluation. To end input, type Ctrl-D on Linux or Ctrl-Z on Windows. If an expression does not conform to the grammar, the tester will report "mismatched input".- Author:
- Don Mendelson
-
-
Constructor Summary
Constructors Constructor Description InteractiveTest(String[] args)Instantiates the ANTLR4 test rig with parameters
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidmain(String[] args)Runs an interactive test of the DSLvoidrun()
-
-
-
Method Detail
-
main
public static void main(String[] args) throws Exception
Runs an interactive test of the DSL- Parameters:
args- command line arguments- -f filename of file to parse - defaults to stdin
- -g grammar name - defaults to
io.fixprotocol.md.antlr - -r start rule name - defaults to
document
- Throws:
Exception- if arguments are invalid
-
-