Goose  Diff

Differences From Artifact [322282cdf0]:

  • File bs/builtins/operators/comma.cpp — part of check-in [1099848ccd] at 2019-08-31 14:57:28 on branch trunk —
    • Unification: anonymous holes are substituted with their content right away, since otherwise they don't get substituted before the second pass.
    • When a tuple of types is used as a param type, it is converted to a tuple type.
    • Fix comma operator not correctly handling prepending a value to an open tuple.
    • Added tests for various tuple based features.
    (user: achavasse size: 3414)

To Artifact [966ce0b024]:

  • File bs/builtins/operators/comma.cpp — part of check-in [af650a9e95] at 2019-09-22 14:37:55 on branch trunk — Project renaming. (user: achavasse size: 3406)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "builtins/builtins.h"
#include "precedence.h"
#include "helpers.h"

using namespace empathy;
using namespace empathy::ir;
using namespace empathy::parse;

namespace empathy::builtins
{
    void SetupCommaOp( Env& e )
    {
        using LocVarOfAnyType =
           CustomPattern< LocalVar, LocalVar::PatternAny >;

        BuildParseRule( e, ","_sid,




|
|
|

|







1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "builtins/builtins.h"
#include "precedence.h"
#include "helpers.h"

using namespace goose;
using namespace goose::ir;
using namespace goose::parse;

namespace goose::builtins
{
    void SetupCommaOp( Env& e )
    {
        using LocVarOfAnyType =
           CustomPattern< LocalVar, LocalVar::PatternAny >;

        BuildParseRule( e, ","_sid,