Goose  Diff

Differences From Artifact [47431e8a7a]:

  • File bs/compiler.cpp — part of check-in [bd4456308c] at 2019-08-18 20:54:03 on branch trunk —
    • Added a function to adjust the compile time execution budget.
    • lexer: Implemented escape sequences in string literals.
    (user: achavasse size: 2403)

To Artifact [20422b0474]:

  • File bs/compiler.cpp — part of check-in [baf9721752] at 2019-08-19 13:43:31 on branch trunk —
    • Fixed many issues with compile time versus run time function invocations.
    • Improved some error messages.
    (user: achavasse size: 2494)

45
46
47
48
49
50
51

52
53
54
55
56
57
58
59
    llvm::InitializeAllTargetMCs();
    llvm::InitializeAllAsmParsers();
    llvm::InitializeAllAsmPrinters();
}

uint32_t Compiler::execute( istream& source, const string& filename )
{

    sema::Context c( m_pEnv, builtins::RootIdentity(), GetValueType< uint32_t >() );

    auto r = make_shared< parse::Resolver >( make_shared< lex::Lexer >( source, filename ), c );
    parse::Parser p( r );

    auto cfg = make_shared< llr::CFG >();
    p.setCFG( cfg );
    p.cfg()->setCurrentBB( cfg->entryBB() );







>
|







45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
    llvm::InitializeAllTargetMCs();
    llvm::InitializeAllAsmParsers();
    llvm::InitializeAllAsmPrinters();
}

uint32_t Compiler::execute( istream& source, const string& filename )
{
    auto identity = sema::InjectDomainIntoIdentity( builtins::RootIdentity(), sema::DomainCompileTime() );
    sema::Context c( m_pEnv, identity, GetValueType< uint32_t >() );

    auto r = make_shared< parse::Resolver >( make_shared< lex::Lexer >( source, filename ), c );
    parse::Parser p( r );

    auto cfg = make_shared< llr::CFG >();
    p.setCFG( cfg );
    p.cfg()->setCurrentBB( cfg->entryBB() );