about summary refs log tree commit diff
path: root/src/libexpr/parser.hh
blob: d1e531ca29216629bc8828e22be2b9d144574ab3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef __PARSER_H
#define __PARSER_H

#include "eval.hh"


namespace nix {


/* Parse a Nix expression from the specified file.  If `path' refers
   to a directory, then "/default.nix" is appended. */
Expr * parseExprFromFile(Path path);

/* Parse a Nix expression from the specified string. */
Expr * parseExprFromString(const string & s, const Path & basePath);


}


#endif /* !__PARSER_H */