diff options
author | Søren Sandmann <sandmann@redhat.com> | 2007-10-16 22:46:07 -0400 |
---|---|---|
committer | Søren Sandmann <sandmann@redhat.com> | 2007-10-16 22:46:07 -0400 |
commit | 006de7f71ce962512b88adcf9866b745cf0c4cc6 (patch) | |
tree | 7cc66fb11ba125d1279c79da3c1cdcb888703dbf /graph.c | |
parent | cecc05c788cf543bf036d765d5bd5462c683f563 (diff) |
Add array loading
Diffstat (limited to 'graph.c')
-rw-r--r-- | graph.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -463,6 +463,7 @@ graph_expression (ast_expression_t *expr, { ast_identifier_expression_t *id; ast_dot_expression_t *dot; + ast_index_expression_t *index; ast_t *ast = (ast_t *)expr; value_t value; ast_binary_operator_t operator; @@ -651,8 +652,11 @@ graph_expression (ast_expression_t *expr, break; case AST_INDEX_EXPRESSION: - g_warning ("array indexing is not implemented tyet\n"); - /* FIXME */ + index = &expr->index; + + node = graph_expression (index->left, node); + node = graph_expression (index->right, node); + node = node_new_load_array (node, ast); break; } |