brewery
notashelf /
feb247f64a93c65c93a80df2d9c810bc72c71386

nixir

public

Import-resolving Nix IR plugin

Star0tarball
clone
ssh://git@git.notashelf.dev:33/notashelf/nixir.git
src/irc/parser.hC25 lines423 B
1
#ifndef NIX_IRC_PARSER_H
2
#define NIX_IRC_PARSER_H
3
4
#include "types.h"
5
#include <memory>
6
#include <string>
7
8
namespace nix_irc {
9
10
class Parser {
11
public:
12
  Parser();
13
  ~Parser();
14
15
  std::shared_ptr<Node> parse(const std::string& source, const std::string& path = "<stdin>");
16
  std::shared_ptr<Node> parse_file(const std::string& path);
17
18
private:
19
  struct Impl;
20
  std::unique_ptr<Impl> pImpl;
21
};
22
23
} // namespace nix_irc
24
25
#endif