> compile NEMU

ysyx_22040000 李心杨
Linux calcite 6.1.71 #1-NixOS SMP PREEMPT_DYNAMIC Fri Jan  5 14:18:41 UTC 2024 x86_64 GNU/Linux
 23:48:41  up 2 days 12:43,  2 users,  load average: 0.79, 0.65, 0.52
This commit is contained in:
tracer-ysyx 2024-01-15 23:48:41 +08:00 committed by xinyangli
parent fb0d244ddd
commit 22ce94f4a4
2 changed files with 2 additions and 0 deletions

View file

@ -16,6 +16,7 @@
%token NUMBER HEX_NUMBER %token NUMBER HEX_NUMBER
%token REGISTER %token REGISTER
%locations
%start input %start input
%define api.value.type { word_t } %define api.value.type { word_t }
%parse-param { uint32_t *result } %parse-param { uint32_t *result }

View file

@ -176,6 +176,7 @@ START_TEST(test_expr_plain_register) {
fputs(buf, stderr); fputs(buf, stderr);
gpr(i) = i; gpr(i) = i;
} }
yy_scan_string(buf); yy_scan_string(buf);
uint32_t value; uint32_t value;
ck_assert(!yyparse(&value)); ck_assert(!yyparse(&value));