feat: 添加跳转指令支持及条件语句编译实现
This commit is contained in:
@@ -94,6 +94,7 @@ namespace Fig
|
||||
}
|
||||
if (!match(TokenType::RightParen))
|
||||
{
|
||||
delete *result;
|
||||
return std::unexpected(Error(ErrorType::SyntaxError,
|
||||
"unclosed parenthese in if condition",
|
||||
"insert `)`",
|
||||
@@ -155,6 +156,7 @@ namespace Fig
|
||||
state = State::ParsingIf;
|
||||
if (!match(TokenType::RightParen))
|
||||
{
|
||||
delete *result;
|
||||
return std::unexpected(Error(ErrorType::SyntaxError,
|
||||
"unclosed parenthese in if condition",
|
||||
"insert `)`",
|
||||
|
||||
Reference in New Issue
Block a user