mirror of
https://github.com/NixOS/nix
synced 2025-06-29 10:31:15 +02:00
* Refactoring (step 2).
This commit is contained in:
parent
ac68840e79
commit
fd7ac09f10
6 changed files with 17 additions and 10 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue