summaryrefslogtreecommitdiff
path: root/graph.c
diff options
context:
space:
mode:
authorSøren Sandmann <sandmann@redhat.com>2007-10-16 22:46:07 -0400
committerSøren Sandmann <sandmann@redhat.com>2007-10-16 22:46:07 -0400
commit006de7f71ce962512b88adcf9866b745cf0c4cc6 (patch)
tree7cc66fb11ba125d1279c79da3c1cdcb888703dbf /graph.c
parentcecc05c788cf543bf036d765d5bd5462c683f563 (diff)
Add array loading
Diffstat (limited to 'graph.c')
-rw-r--r--graph.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/graph.c b/graph.c
index 16a04da..96d70e2 100644
--- a/graph.c
+++ b/graph.c
@@ -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;
}