aboutsummaryrefslogtreecommitdiff
path: root/lib/Parser/Parser.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Parser/Parser.cc')
-rw-r--r--lib/Parser/Parser.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Parser/Parser.cc b/lib/Parser/Parser.cc
index b5c842f..8b1c519 100644
--- a/lib/Parser/Parser.cc
+++ b/lib/Parser/Parser.cc
@@ -1,7 +1,6 @@
#include "cps/Diagnostics.h"
#include "cps/Parser.h"
#include "cps/FunctionAST.h"
-#include <cstdio>
using namespace cps;
@@ -29,11 +28,10 @@ Parser::Parser(Lexer &L) : Lex(L) {
BinopPrecedence[tok_mod] = 40;
}
-int Parser::getNextToken() {
+void Parser::getNextToken() {
int PreviousLine = CurTok == tok_eof ? 0 : Lex.getLine();
CurTok = Lex.gettok();
StartsLine = Lex.getLine() != PreviousLine;
- return CurTok;
}
std::vector<std::unique_ptr<StmtAST>> Parser::Parse() {