use of de.be4.ltl.core.parser.node.Start in project probparsers by bendisposto.
the class CreateFreetypeTest method printProlog.
private void printProlog(final IPrologTermOutput pto) {
final Start machine = createMachine(MACHINE_NAME);
final ASTProlog printer = new ASTProlog(pto, null);
machine.apply(printer);
}
use of de.be4.ltl.core.parser.node.Start in project probparsers by bendisposto.
the class RulesTransformation method runTransformation.
public void runTransformation() throws BCompoundException {
start.apply(this);
DefinitionInjector.injectDefinitions(start, iDefinitions);
MissingPositionsAdder.injectPositions(start);
if (!this.errorList.isEmpty()) {
List<BException> list = new ArrayList<>();
for (CheckException checkException : this.errorList) {
list.add(new BException(this.rulesMachineChecker.getFileName(), checkException));
}
throw new BCompoundException(list);
}
}
use of de.be4.ltl.core.parser.node.Start in project probparsers by bendisposto.
the class OpPatternTest method checkParser.
private void checkParser(final String description, final String oppattern, final String expected) throws BCompoundException {
final Start ast = parser.parse(BParser.OPERATION_PATTERN_PREFIX + oppattern, false);
final Ast2String ast2String = new Ast2String();
ast.apply(ast2String);
final String parsed = ast2String.toString();
assertEquals(description, "Start(AOppatternParseUnit(" + expected + "))", parsed);
}
use of de.be4.ltl.core.parser.node.Start in project probparsers by bendisposto.
the class ParseableButProblematicOnWindows method testParsable.
@Test
public void testParsable() throws Exception {
final BParser parser = new BParser(machine.getName());
Start start = parser.parseFile(machine, false);
start.apply(new PositionTester());
assertNotNull(start);
}
use of de.be4.ltl.core.parser.node.Start in project probparsers by bendisposto.
the class ParseableButProblematicOnWindowsWindowsLF method testParsable.
@Test
public void testParsable() throws Exception {
final BParser parser = new BParser(machine.getName());
Start start = parser.parseFile(machine, false);
start.apply(new PositionTester());
assertNotNull(start);
}
Aggregations