use of de.be4.classicalb.core.parser.node.AElementFreetypeConstructor in project probparsers by bendisposto.
the class CreateFreetypeTest method createFreetype.
private AFreetypesMachineClause createFreetype() {
final AConstructorFreetypeConstructor cons1 = new AConstructorFreetypeConstructor(new TIdentifierLiteral(CONS_BOOL), new ABoolSetExpression());
final AConstructorFreetypeConstructor cons2 = new AConstructorFreetypeConstructor(new TIdentifierLiteral(CONS_INT), new AIntSetExpression());
final AElementFreetypeConstructor cons3 = new AElementFreetypeConstructor(new TIdentifierLiteral(CONS_EMPTY));
final AFreetype freetype = new AFreetype(new TIdentifierLiteral(FREETYPE_NAME), Arrays.<PFreetypeConstructor>asList(cons1, cons2, cons3));
return new AFreetypesMachineClause(Arrays.<PFreetype>asList(freetype));
}
Aggregations