2003-10-29 16:05:03 +00:00
|
|
|
#ifndef __PARSER_H
|
|
|
|
#define __PARSER_H
|
|
|
|
|
2003-11-18 12:06:07 +00:00
|
|
|
#include "nixexpr.hh"
|
2003-10-29 16:05:03 +00:00
|
|
|
|
|
|
|
|
2003-11-22 18:45:56 +00:00
|
|
|
/* Parse a Nix expression from the specified file. If `path' refers
|
|
|
|
to a directory, the "/default.nix" is appended. */
|
2003-10-30 16:18:40 +00:00
|
|
|
Expr parseExprFromFile(Path path);
|
2003-10-29 16:05:03 +00:00
|
|
|
|
2003-11-22 18:45:56 +00:00
|
|
|
/* Parse a Nix expression from the specified string. */
|
|
|
|
Expr parseExprFromString(const string & s,
|
|
|
|
const Path & basePath);
|
|
|
|
|
2003-10-29 16:05:03 +00:00
|
|
|
|
|
|
|
#endif /* !__PARSER_H */
|