removed namespace
This commit is contained in:
parent
36396e97e9
commit
7e7d2a45b5
4 changed files with 24 additions and 33 deletions
|
|
@ -1,22 +1,18 @@
|
|||
#include "ParserCtx.hpp"
|
||||
#include "../build/lexer.hpp"
|
||||
#include "../build/parser.hpp"
|
||||
namespace Elite
|
||||
|
||||
ParserCtx::ParserCtx()
|
||||
{
|
||||
yylex_init(&lexer);
|
||||
// yyset_in()
|
||||
loc = new yy::location();
|
||||
parser = new yy::Parser(lexer, *loc, *this);
|
||||
}
|
||||
|
||||
ParserCtx::ParserCtx()
|
||||
{
|
||||
yylex_init(&lexer);
|
||||
// yyset_in()
|
||||
loc = new yy::location();
|
||||
parser = new yy::Parser(lexer, *loc, *this);
|
||||
}
|
||||
|
||||
ParserCtx::~ParserCtx()
|
||||
{
|
||||
yylex_destroy(lexer);
|
||||
delete loc;
|
||||
delete parser;
|
||||
}
|
||||
|
||||
} // namespace Elite
|
||||
ParserCtx::~ParserCtx()
|
||||
{
|
||||
yylex_destroy(lexer);
|
||||
delete loc;
|
||||
delete parser;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue