> 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:44:33 up 20:34, 1 user, load average: 0.73, 0.40, 0.25
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user