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

#include "eval.hh"


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

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


#endif /* !__PARSER_H */