summaryrefslogtreecommitdiff
path: root/lib/lex.h
blob: ceaef0c79c1a33fe37839356bcdde8371d5242bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef _RE2C_LIB_LEX_
#define _RE2C_LIB_LEX_

#include "lib/parse.h"
#include "src/msg/location.h"
#include "src/regexp/regexp.h"
#include "src/parse/ast.h"

namespace re2c {

int lex(YYSTYPE* yylval, const uint8_t*& pattern, Ast& ast);
const AstNode* parse(const char* pattern, Ast& ast);
extern const AstNode* regexp;

} // namespace re2c

#endif // _RE2C_LIB_LEX_