Search in sources :

Example 1 with AIncludesMachineClause

use of de.be4.classicalb.core.parser.node.AIncludesMachineClause in project probparsers by bendisposto.

the class BMachine method addIncludesClause.

public void addIncludesClause(String machineName) {
    AIncludesMachineClause includes = new AIncludesMachineClause();
    List<PMachineReference> referencesList = new ArrayList<>();
    List<TIdentifierLiteral> idList = new ArrayList<>();
    idList.add(new TIdentifierLiteral(machineName));
    referencesList.add(new AMachineReference(idList, new ArrayList<PExpression>()));
    includes.setMachineReferences(referencesList);
    this.parseUnit.getMachineClauses().add(includes);
}
Also used : PMachineReference(de.be4.classicalb.core.parser.node.PMachineReference) ArrayList(java.util.ArrayList) AMachineReference(de.be4.classicalb.core.parser.node.AMachineReference) AIncludesMachineClause(de.be4.classicalb.core.parser.node.AIncludesMachineClause) TIdentifierLiteral(de.be4.classicalb.core.parser.node.TIdentifierLiteral)

Aggregations

AIncludesMachineClause (de.be4.classicalb.core.parser.node.AIncludesMachineClause)1 AMachineReference (de.be4.classicalb.core.parser.node.AMachineReference)1 PMachineReference (de.be4.classicalb.core.parser.node.PMachineReference)1 TIdentifierLiteral (de.be4.classicalb.core.parser.node.TIdentifierLiteral)1 ArrayList (java.util.ArrayList)1