Goose  Diff

Differences From Artifact [e3080be824]:

  • File bs/parse/parser.cpp — part of check-in [58cc4d39e9] at 2019-01-24 14:32:22 on branch trunk — Refactored c++ <-> value conversions into a centralized api that can be invoked through generic code. This will be needed to wrap native compile-time functions. (user: achavasse size: 3482)

To Artifact [8a42873bd5]:

  • File bs/parse/parser.cpp — part of check-in [61cece933d] at 2019-01-27 16:05:44 on branch trunk — Sema: added a placeholder implementation for the function invocation rule. (user: achavasse size: 3408)

19
20
21
22
23
24
25
26

27
28
29
30
31
32
33
34
35
36
37
19
20
21
22
23
24
25

26




27
28
29
30
31
32
33







-
+
-
-
-
-








    while( next = m_resolver->lookAhead() )
    {
        auto prec = getPrecedence( *next );
        if( !prec || precedence > *prec )
            return result();

        auto val = parseInfix( *next, *prec );
        push( parseInfix( *next, *prec ) );
        if( !val )
            return result();

        push( *val );
    }

    return result();
}

optional< Value > Parser::result() const
{