asm: implement import and instruction parsing
This commit is contained in:
@@ -229,13 +229,13 @@ static enum ivy_status parse_left_paren(
|
||||
|
||||
switch (state->s_prev_token) {
|
||||
case IVY_ASM_KW_SELECTOR:
|
||||
asm_parser_push_state(ctx, ASM_PARSER_SELECTOR);
|
||||
asm_parser_push_state(ctx, ASM_PARSER_SELECTOR, NULL);
|
||||
break;
|
||||
case IVY_ASM_KW_IDENT:
|
||||
asm_parser_push_state(ctx, ASM_PARSER_IDENT);
|
||||
asm_parser_push_state(ctx, ASM_PARSER_IDENT, NULL);
|
||||
break;
|
||||
case IVY_ASM_KW_ATOM:
|
||||
asm_parser_push_state(ctx, ASM_PARSER_ATOM);
|
||||
asm_parser_push_state(ctx, ASM_PARSER_ATOM, NULL);
|
||||
break;
|
||||
default:
|
||||
return IVY_ERR_BAD_SYNTAX;
|
||||
|
||||
Reference in New Issue
Block a user