about summary refs log tree commit diff
path: root/src/libexpr/parser.cc
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2003-11-19T12·03+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2003-11-19T12·03+0000
commitfd7ac09f1073179d9ac439c3e9fb12a1bf00a7d5 (patch)
tree8059ddcedf09dd7b74a93b2fb1309368d722abdb /src/libexpr/parser.cc
parentac68840e79ce74f05ee8b31bb1d528c98b9c7f76 (diff)
* Refactoring (step 2).
Diffstat (limited to 'src/libexpr/parser.cc')
-rw-r--r--src/libexpr/parser.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/libexpr/parser.cc b/src/libexpr/parser.cc
index b2c74af33e77..22d76c263ac6 100644
--- a/src/libexpr/parser.cc
+++ b/src/libexpr/parser.cc
@@ -12,7 +12,6 @@ extern "C" {
 
 #include "aterm.hh"
 #include "parser.hh"
-#include "shared.hh"
 #include "parse-table.h"
 
 
@@ -100,8 +99,7 @@ Expr parseExprFromFile(Path path)
 
         ATprotect(&lang);
         lang = ATmake("Nix");
-        if (!SGopenLanguageFromTerm(
-                (char *) programId.c_str(), lang, parseTable))
+        if (!SGopenLanguageFromTerm("nix-parse", lang, parseTable))
             throw Error(format("cannot open language"));
 
         SG_STARTSYMBOL_ON();