修正TOKEN定义错误

This commit is contained in:
2025-07-25 01:03:34 +08:00
parent d67a309f94
commit 6a8699e09e

View File

@@ -48,8 +48,8 @@ enum class TokenType
ListSeparator, // ,
StartStatementBlock,// {
EndStatementBlock, // }
OpenParanthesis, // (
CloseParanthesis, // )
OpenParenthesis, // (
CloseParenthesis, // )
OpenBracket, // [
CloseBracket, // ]
Amp, // &
@@ -114,9 +114,9 @@ constexpr TokenWord token_words[]=
DEFINE_TOKEN(";", EndStatement),
DEFINE_TOKEN(",", ListSeparator),
DEFINE_TOKEN("{", StartStatementBlock),
DEFINE_TOKEN(")", EndStatementBlock),
DEFINE_TOKEN("(", OpenParanthesis),
DEFINE_TOKEN(")", CloseParanthesis),
DEFINE_TOKEN("}", EndStatementBlock),
DEFINE_TOKEN("(", OpenParenthesis),
DEFINE_TOKEN(")", CloseParenthesis),
DEFINE_TOKEN("[", OpenBracket),
DEFINE_TOKEN("]", CloseBracket),
DEFINE_TOKEN("?", Question),