Exemple #1
0
Expr Ast_Select::_parse_in( ParsingContext &context ) const {
    Expr f_expr = f->parse_in( context );
    Vec<Expr> arg_exprs( Rese(), args.size() );
    for( Past a : args )
        arg_exprs << a->parse_in( context );

    return context.apply( context.get_attr( f_expr, "select" ), args.size() - names.size(), arg_exprs.ptr(), names.size(), names.ptr(), arg_exprs.end() - names.size() );
}
Exemple #2
0
Expr Ast_GetAttr::_parse_in( ParsingContext &context ) const {
    Expr self = obj->parse_in( context );
    if ( ptr or ask or ddo )
        TODO;
    return context.get_attr( self, name );
}