2022-02-02 10:39:55 +01:00
|
|
|
"use strict";
|
|
|
|
|
|
|
|
const fs = require("fs");
|
|
|
|
const assert = require("assert");
|
|
|
|
|
2022-02-02 15:21:16 +01:00
|
|
|
const evaluate = require("./src/evaluate");
|
2022-02-02 10:39:55 +01:00
|
|
|
|
|
|
|
assert(process.argv[2] != null);
|
|
|
|
|
|
|
|
const nixFilePath = process.argv[2];
|
|
|
|
const nixFile = fs.readFileSync(nixFilePath, "utf8");
|
|
|
|
|
2022-02-03 01:25:39 +01:00
|
|
|
// console.log(evaluate(nixFile));
|
|
|
|
evaluate(nixFile);
|