commit 45387b7638bdb6c5508c6e075f3c9a843ad059de Author: Rafał Grodziński Date: Tue May 27 13:23:04 2025 +0900 Empty lexer diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..bf983e6 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.DS_Store +*.o \ No newline at end of file diff --git a/Lexer.cpp b/Lexer.cpp new file mode 100644 index 0000000..7fe4979 --- /dev/null +++ b/Lexer.cpp @@ -0,0 +1,6 @@ +#include "Lexer.h" +#include "Token.h" + +std::vector tokens() { + +} \ No newline at end of file diff --git a/Lexer.h b/Lexer.h new file mode 100644 index 0000000..0c0205b --- /dev/null +++ b/Lexer.h @@ -0,0 +1,13 @@ +#ifndef LEXER_H +#define LEXER_H + +#include + +class Token; + +class Lexer { +public: + std::vector tokens(); +}; + +#endif \ No newline at end of file diff --git a/Token.cpp b/Token.cpp new file mode 100644 index 0000000..4539029 --- /dev/null +++ b/Token.cpp @@ -0,0 +1 @@ +#include "Token.h" \ No newline at end of file diff --git a/Token.h b/Token.h new file mode 100644 index 0000000..259d1c3 --- /dev/null +++ b/Token.h @@ -0,0 +1,13 @@ +#ifndef TOKEN_H +#define TOKEN_H + +class Token { +public: + enum Kind { + integer, + real, + eof + }; +}; + +#endif \ No newline at end of file diff --git a/make.sh b/make.sh new file mode 100755 index 0000000..a1eaf1c --- /dev/null +++ b/make.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +cc -c -std=c++17 *.cpp \ No newline at end of file