15 lines
301 B
JavaScript
15 lines
301 B
JavaScript
"use strict";
|
|
|
|
const fs = require("fs");
|
|
const assert = require("assert");
|
|
|
|
const evaluate = require("./src/evaluate");
|
|
|
|
assert(process.argv[2] != null);
|
|
|
|
const nixFilePath = process.argv[2];
|
|
const nixFile = fs.readFileSync(nixFilePath, "utf8");
|
|
|
|
// console.log(evaluate(nixFile));
|
|
evaluate(nixFile);
|