Goose  Diff

Differences From Artifact [4c4d36bad2]:

  • File bs/builtins/builders/interfaces.cpp — part of check-in [16dd587889] at 2021-11-16 21:18:12 on branch trunk — The details of creating a new visibility scope are now handled by the builder instead of being hardcoded in the parser (user: zlodo size: 5279)

To Artifact [05c1edfdaa]:

  • File bs/builtins/builders/cb_interface.cpp — part of check-in [8be0ff932c] at 2021-11-24 19:45:36 on branch trunk — Propositions are now parsed like regular statement sequences, but using the proposition list under construction as the current builder (user: zlodo size: 5282)

1
2
3
4
5
6
7
8
9

10
11
12
13
14
15
16
1
2
3
4
5
6
7
8

9
10
11
12
13
14
15
16








-
+







#include "builtins/builtins.h"
#include "parse/parse.h"

using namespace goose::parse;
using namespace goose::cir;

namespace goose::builtins
{
    void SetupBuilderInterfaces( Env& e )
    void SetupCodeBuilderInterface( Env& e )
    {
        RegisterBuiltinFunc< Eager< void > ( TypeWrapper< ptr< CodeBuilder > > ) >( e, e.extPoisonBuilder(),
            []( const TypeWrapper< ptr< CodeBuilder > >& cb )
            {
                cb->poison();
            } );