summary refs log tree commit diff
path: root/src/libexpr/parser.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/libexpr/parser.hh')
-rw-r--r--src/libexpr/parser.hh6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libexpr/parser.hh b/src/libexpr/parser.hh
index 5983ec5629..461dae08cd 100644
--- a/src/libexpr/parser.hh
+++ b/src/libexpr/parser.hh
@@ -4,7 +4,13 @@
 #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 */