Interface ASTBuilder


public interface ASTBuilder
An object which translates an ANTLR tree to an ABC AST.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the ASTFactory used by this builder to create new ASTNodes and other AST components.
    edu.udel.cis.vsl.abc.front.common.astgen.PragmaFactory
    Gets the PragmaFactory used by this builder to translate pragmas that occur in the parse tree.
    Builds the AST specified by a ParseTree which represents a translation unit.
  • Method Details

    • getTranslationUnit

      AST getTranslationUnit(ParseTree tree) throws SyntaxException
      Builds the AST specified by a ParseTree which represents a translation unit.
      Returns:
      the AST
      Throws:
      SyntaxException - if something is wrong with the object being translated into an ABC
    • getASTFactory

      ASTFactory getASTFactory()
      Gets the ASTFactory used by this builder to create new ASTNodes and other AST components.
      Returns:
      the ASTFactory used by this builder
    • getPragmaFactory

      edu.udel.cis.vsl.abc.front.common.astgen.PragmaFactory getPragmaFactory()
      Gets the PragmaFactory used by this builder to translate pragmas that occur in the parse tree.
      Returns:
      the pragma factory used by this builder