qzdoom/tools/re2c/src/parse/parser.h
2016-02-06 20:58:35 -06:00

28 lines
708 B
C++

#ifndef _RE2C_PARSE_PARSER_
#define _RE2C_PARSE_PARSER_
#include <list>
#include <string>
#include "src/codegen/output.h"
#include "src/ir/regexp/regexp.h"
#include "src/ir/regexp/regexp_rule.h"
#include "src/parse/scanner.h"
#include "src/parse/spec.h"
namespace re2c
{
extern void parse(Scanner &, Output &);
extern void parse_cleanup();
typedef std::set<std::string> CondList;
typedef std::list<RuleOp*> RuleOpList;
typedef std::map<std::string, Spec> SpecMap;
typedef std::map<std::string, std::pair<uint32_t, std::string> > SetupMap;
typedef std::map<std::string, const Code *> DefaultMap;
typedef std::map<std::string, RegExp *> symbol_table_t;
} // namespace re2c
#endif // _RE2C_PARSE_PARSER_