Use a lel:: namespace.
This commit is contained in:
parent
cebf61a794
commit
1620a5420f
6 changed files with 155 additions and 148 deletions
|
@ -2,8 +2,10 @@
|
|||
#include <fmt/core.h>
|
||||
#include <iostream>
|
||||
|
||||
namespace lel {
|
||||
|
||||
%%{
|
||||
machine LELParser;
|
||||
machine Parser;
|
||||
alphtype char;
|
||||
|
||||
action token {tk = input.substr(start - begin, fpc - start); }
|
||||
|
@ -35,7 +37,7 @@
|
|||
|
||||
%% write data;
|
||||
|
||||
bool LELParser::parse(std::string input) {
|
||||
bool Parser::parse(std::string input) {
|
||||
reset();
|
||||
int cs = 0;
|
||||
const char *start = nullptr;
|
||||
|
@ -56,3 +58,5 @@ bool LELParser::parse(std::string input) {
|
|||
}
|
||||
return good;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue