Empty lexer
This commit is contained in:
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
.DS_Store
|
||||
*.o
|
||||
6
Lexer.cpp
Normal file
6
Lexer.cpp
Normal file
@@ -0,0 +1,6 @@
|
||||
#include "Lexer.h"
|
||||
#include "Token.h"
|
||||
|
||||
std::vector<Token> tokens() {
|
||||
|
||||
}
|
||||
13
Lexer.h
Normal file
13
Lexer.h
Normal file
@@ -0,0 +1,13 @@
|
||||
#ifndef LEXER_H
|
||||
#define LEXER_H
|
||||
|
||||
#include <vector>
|
||||
|
||||
class Token;
|
||||
|
||||
class Lexer {
|
||||
public:
|
||||
std::vector<Token> tokens();
|
||||
};
|
||||
|
||||
#endif
|
||||
13
Token.h
Normal file
13
Token.h
Normal file
@@ -0,0 +1,13 @@
|
||||
#ifndef TOKEN_H
|
||||
#define TOKEN_H
|
||||
|
||||
class Token {
|
||||
public:
|
||||
enum Kind {
|
||||
integer,
|
||||
real,
|
||||
eof
|
||||
};
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user