Skip to content

Commit 4fc0f44

Browse files
committed
Temporarily print program tokens
1 parent 86f4ee4 commit 4fc0f44

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/em/EmLang.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ void EmLang::runProgram(const std::wstring& program,
1313
auto lexer = Lexer(program);
1414
auto tokens = lexer.scanTokens();
1515

16+
for (const auto& token : tokens) {
17+
std::cout << token;
18+
}
19+
std::cout << std::endl;
20+
1621
auto parser = Parser(tokens);
1722
auto ast = parser.parse();
1823

0 commit comments

Comments
 (0)