mirror of
https://github.com/NixOS/nix
synced 2025-06-25 23:11:16 +02:00
* Use a proper namespace.
* Optimise header file usage a bit. * Compile the parser as C++.
This commit is contained in:
parent
aab8812732
commit
75068e7d75
61 changed files with 650 additions and 268 deletions
|
@ -4,6 +4,9 @@
|
|||
#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);
|
||||
|
@ -13,4 +16,7 @@ Expr parseExprFromString(EvalState & state, const string & s,
|
|||
const Path & basePath);
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
#endif /* !__PARSER_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue