java.lang.Object
dev.civl.abc.transform.IF.BaseTransformer
dev.civl.mc.transform.IF.MPI2CIVLTransformer
- All Implemented Interfaces:
dev.civl.abc.transform.IF.Transformer
public class MPI2CIVLTransformer
extends dev.civl.abc.transform.IF.BaseTransformer
MPI2CIVLTransformer transforms an AST of an MPI program into an AST of an
equivalent CIVL-C program. See transform(AST). TODO: copy
output files only for the mpi process with rank 0.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe code (short name) of this transformer.static final StringThe long name of the transformer.static final StringThe description of this transformer.Fields inherited from class dev.civl.abc.transform.IF.BaseTransformer
astFactory, code, longName, nodeFactory, shortDescription -
Constructor Summary
ConstructorsConstructorDescriptionMPI2CIVLTransformer(dev.civl.abc.ast.IF.ASTFactory astFactory) Creates a new instance of MPITransformer. -
Method Summary
Methods inherited from class dev.civl.abc.transform.IF.BaseTransformer
getCode, getConfiguration, getShortDescription, newStringLiteralNode, toString
-
Field Details
-
CODE
The code (short name) of this transformer.- See Also:
-
LONG_NAME
The long name of the transformer.- See Also:
-
SHORT_DESCRIPTION
The description of this transformer.- See Also:
-
-
Constructor Details
-
MPI2CIVLTransformer
public MPI2CIVLTransformer(dev.civl.abc.ast.IF.ASTFactory astFactory) Creates a new instance of MPITransformer.- Parameters:
astFactory- The ASTFactory that will be used to create new nodes.
-
-
Method Details
-
transform
public dev.civl.abc.ast.IF.AST transform(dev.civl.abc.ast.IF.AST ast) throws dev.civl.abc.token.IF.SyntaxException - Throws:
dev.civl.abc.token.IF.SyntaxException
-