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