Module dev.civl.mc

Class OpenMP2CIVLTransformer

java.lang.Object
dev.civl.abc.transform.IF.BaseTransformer
dev.civl.mc.transform.IF.OpenMP2CIVLTransformer
All Implemented Interfaces:
dev.civl.abc.transform.IF.Transformer

public class OpenMP2CIVLTransformer extends dev.civl.abc.transform.IF.BaseTransformer
OpenMP2CIVLTransformer transforms an AST of an OpenMP program into an AST of an equivalent CIVL-C program. See transform(AST).
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The code (short name) of this transformer.
    static String
    The long name of the transformer.
    static String
    The description of this transformer.

    Fields inherited from class dev.civl.abc.transform.IF.BaseTransformer

    astFactory, code, longName, nodeFactory, shortDescription
  • Constructor Summary

    Constructors
    Constructor
    Description
    OpenMP2CIVLTransformer(dev.civl.abc.ast.IF.ASTFactory astFactory, CIVLConfiguration config)
    Creates a new instance of OpenMP2CIVLTransformer.
  • Method Summary

    Modifier and Type
    Method
    Description
    dev.civl.abc.ast.IF.AST
    transform(dev.civl.abc.ast.IF.AST ast)
     

    Methods inherited from class dev.civl.abc.transform.IF.BaseTransformer

    getCode, getConfiguration, getShortDescription, newStringLiteralNode, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • CODE

      public static final String CODE
      The code (short name) of this transformer.
      See Also:
    • LONG_NAME

      public static String LONG_NAME
      The long name of the transformer.
    • SHORT_DESCRIPTION

      public static String SHORT_DESCRIPTION
      The description of this transformer.
  • Constructor Details

    • OpenMP2CIVLTransformer

      public OpenMP2CIVLTransformer(dev.civl.abc.ast.IF.ASTFactory astFactory, CIVLConfiguration config)
      Creates a new instance of OpenMP2CIVLTransformer.
      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