From b1f7b0cccc6986ca107d9eeb1c7d5e5e5a32dc49 Mon Sep 17 00:00:00 2001 From: Johnny Richard Date: Sun, 30 Apr 2023 03:11:00 -0300 Subject: gas: Compile variable expression with scope support This patch adds the variable compilation and uses a scope (a stack of map) to lookup for identities. Today we use a vector + ref_entry structs in order to achieve the scope implementation. The ref_entry lacks memory management, we are still no sure who will be the owner of the pointer. We also want to replace the scope a hashtable_t type as soon as we get one. Signed-off-by: Johnny Richard Co-authored-by: Carlos Maniero --- test/integration_test.c | 1 + 1 file changed, 1 insertion(+) (limited to 'test/integration_test.c') diff --git a/test/integration_test.c b/test/integration_test.c index 739a938..4178b42 100644 --- a/test/integration_test.c +++ b/test/integration_test.c @@ -42,6 +42,7 @@ test_examples(const MunitParameter params[], void *user_data_or_fixture) { assert_exit_status("../examples/main.pipa", 69); assert_exit_status("../examples/arithmetics.pipa", 13); + assert_exit_status("../examples/variables.pipa", 28); return MUNIT_OK; } -- cgit v1.2.3