/
thomas-king
/
Lexer
Обзор
Документация
Войти
/
thomas-king
/
Lexer
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
main
main.cpp
19 строк
313 B
AceRodstin
Update Parser
25 ноя 2022, 15:34
25 ноя 2022, 15:34
8b59872
Код
Авторство
О чём код?
// // Created by Ace Rodstin on 16 Nov 2022. // #include <iostream> #include "include/Lexer/Parser.h" int main() { string source_code = "5 / ((4 - 3) / 2) - 1"; Lexer::Parser lexer; auto tokens = lexer.parse(source_code); for (auto token : tokens) { cout << token.description() << endl; } return 0; }