forked from lix-project/lix
75068e7d75
* Optimise header file usage a bit. * Compile the parser as C++.
23 lines
433 B
C++
23 lines
433 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, 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 */
|