brewery
notashelf /
8a093aa9e806dbdbe1adbcbe8e8214fbdd2cf7e2

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