diff options
author | Johnny Richard <johnny@johnnyrichard.com> | 2023-04-30 01:48:18 +0200 |
---|---|---|
committer | Johnny Richard <johnny@johnnyrichard.com> | 2023-04-30 01:55:29 +0200 |
commit | ef07fab261cce781ca750c1288574d4001f14bcf (patch) | |
tree | 9b4da44aee7cc64cec448adeee31b38e12d29e6d /src/gas_assembly_generator.c | |
parent | 88a08db927629032d6d4c662e00f0dce2c112ce4 (diff) |
parser: Registry identifiers on scope
We are parsing variables/functions and checking if they are defined on
scope. Otherwise we fail the parsing with a nice message.
Signed-off-by: Johnny Richard <johnny@johnnyrichard.com>
Co-authored-by: Carlos Maniero <carlosmaniero@gmail.com>
Diffstat (limited to 'src/gas_assembly_generator.c')
-rw-r--r-- | src/gas_assembly_generator.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gas_assembly_generator.c b/src/gas_assembly_generator.c index ea76c5f..f09b60d 100644 --- a/src/gas_assembly_generator.c +++ b/src/gas_assembly_generator.c @@ -61,6 +61,9 @@ gas_assembly_generator_compile(gas_assembly_generator_t *gen, ast_node_t *ast) case AST_VARIABLE_DECLARATION: assert(false && "TODO: ast variable declaration not implemented yet"); break; + case AST_VARIABLE: + assert(false && "TODO: ast variable not implemented yet"); + break; case AST_UNKOWN_NODE: assert(false && "unreachable"); } |