Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main.cc

    r0e464f6 r9ea38de  
    2929#include <string>                           // for char_traits, operator<<
    3030
     31#include "AST/Convert.hpp"
    3132#include "CompilationState.h"
    3233#include "../config.h"                      // for CFA_LIBDIR
     
    302303                } // if
    303304
    304                 PASS( "Resolve", ResolvExpr::resolve( translationUnit ) );
     305                // PASS( "Resolve", ResolvExpr::resolve( translationUnit ) );
     306                {
     307                        auto transUnit = convert( move( translationUnit ) );
     308                        PASS( "Resolve", ResolvExpr::resolve( transUnit ) );
     309                        translationUnit = convert( move( transUnit ) );
     310                }
    305311                if ( exprp ) {
    306312                        dump( translationUnit );
     
    454460        const char * descript;
    455461} printopts[] = {
    456         { "ascodegen", codegenp, true, "print AST as codegen rather than AST" },
    457         { "asterr", errorp, true, "print AST on error" },
     462        { "altexpr", expraltp, true, "alternatives for expressions" },
     463        { "ascodegen", codegenp, true, "as codegen rather than AST" },
     464        { "ast", astp, true, "AST after parsing" },
     465        { "astdecl", validp, true, "AST after declaration validation pass" },
     466        { "asterr", errorp, true, "AST on error" },
     467        { "astexpr", exprp, true, "AST after expression analysis" },
     468        { "astgen", genericsp, true, "AST after instantiate generics" },
     469        { "box", bboxp, true, "before box step" },
     470        { "ctordtor", ctorinitp, true, "after ctor/dtor are replaced" },
     471        { "codegen", bcodegenp, true, "before code generation" },
    458472        { "declstats", declstatsp, true, "code property statistics" },
    459473        { "parse", yydebug, true, "yacc (parsing) debug information" },
    460474        { "pretty", prettycodegenp, true, "prettyprint for ascodegen flag" },
     475        { "resolver", bresolvep, true, "before resolver step" },
    461476        { "rproto", resolvprotop, true, "resolver-proto instance" },
    462         { "rsteps", resolvep, true, "print resolver steps" },
    463         { "tree", parsep, true, "print parse tree" },
    464         // code dumps
    465         { "ast", astp, true, "print AST after parsing" },
    466         { "symevt", symtabp, true, "print AST after symbol table events" },
    467         { "altexpr", expraltp, true, "print alternatives for expressions" },
    468         { "astdecl", validp, true, "print AST after declaration validation pass" },
    469         { "resolver", bresolvep, true, "print AST before resolver step" },
    470         { "astexpr", exprp, true, "print AST after expression analysis" },
    471         { "ctordtor", ctorinitp, true, "print AST after ctor/dtor are replaced" },
    472         { "tuple", tuplep, true, "print AST after tuple expansion" },
    473         { "astgen", genericsp, true, "print AST after instantiate generics" },
    474         { "box", bboxp, true, "print AST before box step" },
    475         { "codegen", bcodegenp, true, "print AST before code generation" },
     477        { "rsteps", resolvep, true, "resolver steps" },
     478        { "symevt", symtabp, true, "symbol table events" },
     479        { "tree", parsep, true, "parse tree" },
     480        { "tuple", tuplep, true, "after tuple expansion" },
    476481};
    477482enum { printoptsSize = sizeof( printopts ) / sizeof( printopts[0] ) };
Note: See TracChangeset for help on using the changeset viewer.