brewery
notashelf /
59fedbe78d66b13c17c3d657dc171c2768f1c0db

nixir

public

Import-resolving Nix IR plugin

Star0tarball
clone
ssh://git@git.notashelf.dev:33/notashelf/nixir.git
src/irc/parser.hC25 lines422 B
1
#ifndef NIX_IRC_PARSER_H
2
#define NIX_IRC_PARSER_H
3
4
#include "types.h"
5
#include <string>
6
#include <memory>
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
}
24
25
#endif