diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2003-11-18 12:06:07 +0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2003-11-18 12:06:07 +0000 |
commit | dfc9c64ead7f24d51ed1a232e4b3ecafa8384f2e (patch) | |
tree | ab0d5b381eb01bec46a66174b3b09b60ea439bb7 /src/nix-instantiate/parser.cc | |
parent | b1117ef29d35822647bda32f8cd3887f4f6eaede (diff) |
* "Fix expression" -> "Nix expression".
* More refactoring.
Diffstat (limited to 'src/nix-instantiate/parser.cc')
-rw-r--r-- | src/nix-instantiate/parser.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/nix-instantiate/parser.cc b/src/nix-instantiate/parser.cc index eaa41b396..f950a51f6 100644 --- a/src/nix-instantiate/parser.cc +++ b/src/nix-instantiate/parser.cc @@ -13,7 +13,6 @@ extern "C" { #include "aterm.hh" #include "parser.hh" #include "shared.hh" -#include "fixexpr.hh" #include "parse-table.h" @@ -76,12 +75,12 @@ Expr parseExprFromFile(Path path) if (e) return e; #endif - /* If `path' refers to a directory, append `/default.fix'. */ + /* If `path' refers to a directory, append `/default.nix'. */ struct stat st; if (stat(path.c_str(), &st)) throw SysError(format("getting status of `%1%'") % path); if (S_ISDIR(st.st_mode)) - path = canonPath(path + "/default.fix"); + path = canonPath(path + "/default.nix"); /* Initialise the SDF libraries. */ static bool initialised = false; @@ -95,12 +94,12 @@ Expr parseExprFromFile(Path path) ATprotect(&parseTable); parseTable = ATreadFromBinaryString( - (char *) fixParseTable, sizeof fixParseTable); + (char *) nixParseTable, sizeof nixParseTable); if (!parseTable) throw Error(format("cannot construct parse table term")); ATprotect(&lang); - lang = ATmake("Fix"); + lang = ATmake("Nix"); if (!SGopenLanguageFromTerm( (char *) programId.c_str(), lang, parseTable)) throw Error(format("cannot open language")); |