about summary refs log blame commit diff
path: root/src/libexpr/parser.hh
blob: c8c8ad8090be81f6d948b4bd4c5686efc4d52865 (plain) (tree)
1
2
3
4
5
6
7
8
9


                  
                  
 
 


               
                                                                    
                                                      
                                                       
 
                                                       
                                                                                       
 
 


 
                        
#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, then "/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 */