lix/src/libexpr/parser.hh
2010-04-12 18:30:11 +00:00

21 lines
396 B
C++

#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 */