use of suite.node.Node in project suite by stupidsing.
the class FormatterTest method testDump.
private void testDump(String s) {
Node node = Suite.parse(s);
assertEquals(s, Formatter.dump(node));
}
use of suite.node.Node in project suite by stupidsing.
the class FormatterTest method testDisplay.
private void testDisplay(String s) {
Node node = Suite.parse(s);
assertEquals(s, Formatter.display(node));
}
use of suite.node.Node in project suite by stupidsing.
the class IterativeParserTest method testParseException.
@Test
public void testParseException() {
try {
Node node = iterativeParser.parse("(a");
System.out.println(node);
assertNotNull(Tree.decompose(node).getLeft());
throw new AssertionError();
} catch (RuntimeException ex) {
}
}
use of suite.node.Node in project suite by stupidsing.
the class IterativeParserTest method testParseFile.
@Test
public void testParseFile() {
String in = FileUtil.read("src/main/ll/fc/fc.sl");
Node node = iterativeParser.parse(in);
System.out.println(new PrettyPrinter().prettyPrint(node));
assertNotNull(Tree.decompose(node));
}
use of suite.node.Node in project suite by stupidsing.
the class ParserCompareTest method test.
private void test(String in) {
Node n0 = iterativeParser.parse(in);
Node n1 = recursiveParser.parse(in);
assertEquals(n0, n1);
}
Aggregations