summaryrefslogtreecommitdiffhomepage
path: root/lexer.h
blob: f9363efc182b5b6e8c263474a508ef4a63504979 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#pragma once

#include "minicc.h"
#include "bnf.h"

namespace Lex {

class Lexer
{

 //states; // start, ...
 //transitions; // state, state, character

public:
 Lexer(const BNF& bnf, const std::string& Top);
 std::vector<Token> Lex(const std::string& s);

};

} // namespace Lex