📄 error.c
字号:
#include <stdio.h>
#include <conio.h>
#include <stdlib.h>
#include "Error.h"
#include "Debug.h"
#include "GenCode.h"
extern char *yytext;
extern int *yylineno;
void parse_error(char *info, char *info1)
{
static char buf[255];
sprintf(buf, "%s%s", info, info1);
yyerror( buf );
}
void yyerror(char *info)
{
printf("%d", yylineno);
putchar(' ');
putchar(':');
putchar(' ');
puts(info);
// getch();
}
void user_exit(int status)
{
remove_all_tmp();
exit(status);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -