> compile NEMU

221220000 张三
Linux zzy 5.15.146.1-microsoft-standard-WSL2 #1 SMP Thu Jan 11 04:09:03 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
 21:42:54 up 20:33,  1 user,  load average: 0.46, 0.29, 0.21
This commit is contained in:
tracer-ics2023
2024-08-31 21:42:54 +08:00
committed by zzy
parent bc4c1f284e
commit 71172a3cb4

View File

@ -45,8 +45,8 @@ static struct rule {
{" +", TK_NOTYPE}, // spaces
{"\\+", '+'}, // plus
{"==", TK_EQ}, // equal
{"\\!=", TK_NEQ}, // not equal
{"\\&\\&", TK_AND}, // and
// {"\\!=", TK_NEQ}, // not equal
// {"\\&\\&", TK_AND}, // and
{"-", '-'}, // sub
{"\\*", '*'}, // mul
@ -55,8 +55,8 @@ static struct rule {
{"\\)", ')'}, // )
{"[0-9]+", TK_DEC}, // dec number
{"0x[0-9a-fA-F]+", TK_HEX}, // hex number
{"\\$[0-9a-z]+", TK_REG}, // register
// {"0x[0-9a-fA-F]+", TK_HEX}, // hex number
// {"\\$[0-9a-z]+", TK_REG}, // register
};
#define NR_REGEX ARRLEN(rules)