plsm-cpp/compiler/include/ParserDriver.h
2024-02-24 21:34:06 +01:00

24 lines
333 B
C++

#pragma once
#include <string>
#include "AST.h"
#include "parser.gen.h"
class ParserDriver
{
public:
ParserDriver() {}
int parse(const std::string &input);
void startLexer();
void stopLexer();
std::string file;
yy::location location;
};
#define YY_DECL yy::parser::symbol_type yylex(ParserDriver &driver)
YY_DECL;