Fixed previous commit
This commit is contained in:
@@ -93,12 +93,12 @@ namespace LXC::Parser
|
||||
// Fowards to the ParseIdentifier and returns the result/error //
|
||||
case Lexer::Token::Identifier:
|
||||
ctx.Advance();
|
||||
return Internal::CreateNode<AST::VarAccess>(current->Str());
|
||||
return Internal::CreateNodeV<AST::VarAccess>(current->Str());
|
||||
|
||||
// Returns an integer literal node //
|
||||
case Lexer::Token::NumLiteral:
|
||||
ctx.Advance();
|
||||
return Internal::CreateNode<AST::IntLiteral>(current->Str());
|
||||
return Internal::CreateNodeV<AST::IntLiteral>(current->Str());
|
||||
|
||||
default:
|
||||
// Unknown token type for this section //
|
||||
|
||||
Reference in New Issue
Block a user