> 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 22:34:52 up 2 days 11:29, 2 users, load average: 0.89, 0.70, 0.50
This commit is contained in:
parent
3ed490ab52
commit
3a1d39bebf
2 changed files with 13 additions and 13 deletions
|
@ -12,5 +12,5 @@ $$?[a-zA-Z]{2,3} { yylval = isa_reg_str2val(yytext + 1, &success); if(!success)
|
|||
[0-9]+ { yylval = strtoul(yytext, NULL, 10); return NUMBER; }
|
||||
[+\-*/()] { return *yytext; }
|
||||
[ \t] { }
|
||||
. { printf("Unexpected character: %s\n", yytext); }
|
||||
. { fprintf(stderr, "Unexpected character: %s\n", yytext); return YYerror; }
|
||||
%%
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue