> 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
 11:21:51  up   0:16,  2 users,  load average: 0.24, 0.32, 0.19
This commit is contained in:
tracer-ysyx 2024-01-13 11:21:51 +08:00 committed by xinyangli
parent f72f814469
commit abab954dbb

View file

@ -1,12 +1,15 @@
%code requires {
#include <common.h>
}
%{
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
extern int yylex(void);
void yyerror(uint32_t *result, const char *err) {
}
%{
#include <common.h>
#include <stdio.h>
#include <stdlib.h>
void yyerror(word_t *result, const char *err) {
fprintf(stderr, "Error: %s\n", err);
}
%}