mirror of
https://github.com/NixOS/nix.git
synced 2025-11-09 03:56:01 +01:00
Since the parser is now LALR we can easily switch over to the less ugly sketelon than the default C one. This would allow us to switch from %union to %define api.value.type variant in the future to avoid the need for triviall POD types.
17 lines
350 B
C++
17 lines
350 B
C++
#pragma once
|
|
|
|
#ifndef BISON_HEADER
|
|
# include "parser-tab.hh"
|
|
using YYSTYPE = nix::parser::BisonParser::value_type;
|
|
using YYLTYPE = nix::parser::BisonParser::location_type;
|
|
# include "lexer-tab.hh" // IWYU pragma: export
|
|
#endif
|
|
|
|
namespace nix {
|
|
|
|
class Parser : public parser::BisonParser
|
|
{
|
|
using BisonParser::BisonParser;
|
|
};
|
|
|
|
} // namespace nix
|