forked from lix-project/lix
ab0bc4999a
deleting a path in the store. * Allow absolute paths in Nix expressions. * Get nix-prefetch-url to work again. * Various other fixes.
17 lines
376 B
C++
17 lines
376 B
C++
#ifndef __PARSER_H
|
|
#define __PARSER_H
|
|
|
|
#include "nixexpr.hh"
|
|
|
|
|
|
/* Parse a Nix expression from the specified file. If `path' refers
|
|
to a directory, the "/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 */
|