Use a lel:: namespace.

This commit is contained in:
Zed A. Shaw 2025-02-15 11:55:04 -05:00
parent cebf61a794
commit 1620a5420f
6 changed files with 155 additions and 148 deletions

View file

@ -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;
}
}