TudorLang/tests/test.cpp
2025-07-12 10:56:58 +08:00

20 lines
466 B
C++

#include "Lexer.hpp"
#include "Tools.hpp"
#include <iostream>
#include <string>
#include <vector>
#define NV(v) {std::cout<<#v<<" : '"<<(v)<<"'\n";}
int main(){
ztl::get_T_name<ztl::lexer::Keywords>();
std::string hello_world = R"(
print("hello ztl!");
)";
std::cout<<"This is a ztl's test\n";
NV(hello_world)
std::vector<ztl::lexer::Token> lexer_hello_world = ztl::lexer::lexer(hello_world);
ztl::logger(lexer_hello_world);
}