plsm-cpp/compiler/include/ParserDriver.h
Ludwig Lehnert 6c32f09c03 next steps
2024-02-25 22:38:17 +01:00

25 lines
351 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;
Module *module;
};
#define YY_DECL yy::parser::symbol_type yylex(ParserDriver &driver)
YY_DECL;