Package asteroid

Class Phase.GLOBAL

  • Enclosing class:
    Phase

    public static class Phase.GLOBAL
    extends Object
    Compilation phases available for global transformations:

    • SEMANTIC_ANALYSIS
    • CANONICALIZATION
    • INSTRUCTION_SELECTION
    • CLASS_GENERATION
    • OUTPUT
    • FINALIZATION
    Since:
    0.1.2
    • Field Detail

      • INITIALIZATION

        public static final CompilePhase INITIALIZATION
        Source files are opened and environment configured
        Since:
        0.1.2
      • PARSING

        public static final CompilePhase PARSING
        The grammar is used to to produce tree of tokens representing the source code
        Since:
        0.2.0
      • CONVERSION

        public static final CompilePhase CONVERSION
        An abstract syntax tree (AST) is created from token trees
        Since:
        0.2.0
      • SEMANTIC_ANALYSIS

        public static final CompilePhase SEMANTIC_ANALYSIS
        Consistency and validity checks
        Since:
        0.2.0
      • CANONICALIZATION

        public static final CompilePhase CANONICALIZATION
        Complete building the AST
        Since:
        0.2.0
      • INSTRUCTION_SELECTION

        public static final CompilePhase INSTRUCTION_SELECTION
        Instruction set is chosen, for example Java 6 or Java 7 bytecode level
        Since:
        0.2.0
      • CLASS_GENERATION

        public static final CompilePhase CLASS_GENERATION
        Creates the bytecode of the class in memory
        Since:
        0.2.0
      • OUTPUT

        public static final CompilePhase OUTPUT
        Write the binary output to the file system (*.class file)
        Since:
        0.2.0
      • FINALIZATION

        public static final CompilePhase FINALIZATION
        Perform any last cleanup and closes the file
        Since:
        0.2.0
    • Constructor Detail

      • GLOBAL

        public GLOBAL()