abacus: parse: fix name of namespace

This commit is contained in:
Bruno BELANYI 2021-08-22 14:37:32 +02:00
parent e4aa81d1a4
commit 26055c5a3f
4 changed files with 10 additions and 10 deletions

View file

@ -1,6 +1,6 @@
#include "parser-driver.hh"
namespace abacus::parser {
namespace abacus::parse {
ParserDriver::ParserDriver() = default;
@ -36,4 +36,4 @@ ParserDriver::numeric_type const& ParserDriver::result() const {
return result_;
}
} // namespace abacus::parser
} // namespace abacus::parse

View file

@ -6,7 +6,7 @@
#include "bignum.hh" // FIXME: I would like `bignum/bignum.hh` path instead...
namespace abacus::parser {
namespace abacus::parse {
class ParserDriver {
public:
@ -33,4 +33,4 @@ private:
bool scan_trace_p_ = false;
};
} // namespace abacus::parser
} // namespace abacus::parse

View file

@ -32,9 +32,9 @@
// Code that should be in the header
%code requires {
// Forward declare our driver
namespace abacus::parser {
namespace abacus::parse {
class ParserDriver;
} // namespace abacus::parser
} // namespace abacus::parse
#include "bignum.hh" // FIXME: I would like `bignum/bignum.hh` path instead...
}
@ -42,7 +42,7 @@ class ParserDriver;
%code provides {
// Forward ParserDriver to scanner
#define YY_DECL \
yy::parser::symbol_type yylex(::abacus::parser::ParserDriver& drv)
yy::parser::symbol_type yylex(::abacus::parse::ParserDriver& drv)
YY_DECL;
}
@ -52,7 +52,7 @@ class ParserDriver;
}
// Use the driver to carry context back-and-forth
%param { abacus::parser::ParserDriver& drv }
%param { abacus::parse::ParserDriver& drv }
%token EOF 0 "end-of-file"

View file

@ -59,7 +59,7 @@ int [0-9]+
%%
namespace abacus::parser {
namespace abacus::parse {
void ParserDriver::scan_open() {
yy_flex_debug = scan_trace_p_;
@ -76,4 +76,4 @@ void ParserDriver::scan_close() {
fclose(yyin);
}
} // namespace abacus::parser
} // namespace abacus::parse