1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-20 17:29:36 +01:00
nix/src/libexpr/lexer-helpers.hh
Sergei Zimmerman a8715a2d6e
libexpr: Switch parser.y to %skeleton lalr1.cc
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.
2025-09-29 00:58:41 +03:00

13 lines
278 B
C++

#pragma once
#include <cstddef>
#include "parser-scanner-decls.hh"
namespace nix::lexer::internal {
void initLoc(Parser::location_type * loc);
void adjustLoc(yyscan_t yyscanner, Parser::location_type * loc, const char * s, size_t len);
} // namespace nix::lexer::internal