Changeset c12b2ae in mainline for uspace/app/bithenge/script.c


Ignore:
Timestamp:
2012-08-07T05:00:41Z (12 years ago)
Author:
Sean Bartell <wingedtachikoma@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ad5c8a48
Parents:
a8be91a
Message:

Bithenge: search for current node members in outer scopes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/bithenge/script.c

    ra8be91a rc12b2ae  
    363363static bithenge_expression_t *parse_expression(state_t *state)
    364364{
     365        int rc;
    365366        if (state->token == TOKEN_TRUE || state->token == TOKEN_FALSE) {
    366367                bool val = state->token == TOKEN_TRUE;
    367368                next_token(state);
    368369                bithenge_node_t *node;
    369                 int rc = bithenge_new_boolean_node(&node, val);
     370                rc = bithenge_new_boolean_node(&node, val);
    370371                if (rc != EOK) {
    371372                        error_errno(state, rc);
     
    385386                next_token(state);
    386387                bithenge_node_t *node;
    387                 int rc = bithenge_new_integer_node(&node, val);
     388                rc = bithenge_new_integer_node(&node, val);
    388389                if (rc != EOK) {
    389390                        error_errno(state, rc);
     
    412413
    413414                bithenge_expression_t *expr;
    414                 int rc = bithenge_param_expression(&expr, i);
     415                rc = bithenge_param_expression(&expr, i);
    415416                if (rc != EOK) {
    416417                        error_errno(state, rc);
     
    427428                bithenge_node_t *key = NULL;
    428429                bithenge_expression_t *expr = NULL;
    429                 int rc = bithenge_current_node_expression(&expr);
    430                 error_errno(state, rc);
    431430
    432431                if (state->error == EOK) {
     
    437436
    438437                if (state->error == EOK) {
    439                         rc = bithenge_member_expression(&expr, expr, key);
     438                        rc = bithenge_scope_member_expression(&expr, key);
    440439                        key = NULL;
    441440                        if (rc != EOK)
     
    857856
    858857        if (state->error == EOK) {
    859                 int rc = bithenge_new_scope_transform(&xform, xform,
     858                int rc = bithenge_new_barrier_transform(&xform, xform,
    860859                    state->num_params);
    861860                if (rc != EOK) {
Note: See TracChangeset for help on using the changeset viewer.