Skip to content

Commit 11eddc6

Browse files
committed
Do not export samples in API
1 parent fe8ca8a commit 11eddc6

File tree

4 files changed

+5
-16
lines changed

4 files changed

+5
-16
lines changed
File renamed without changes.

index.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
const encoding = require("./encoding");
44
const compile = require("./compile");
5-
const samples = require("./samples");
65
const inet = require("inet-lib");
76

87
const parser = new compile.Parser();
@@ -115,7 +114,5 @@ run.debug = debug;
115114
run.debug0 = debug0;
116115
run.debug1 = debug1;
117116
run.mlc2in = mlc2in;
118-
run.example = samples.fact.replace(/\n*$/, "");
119-
run.samples = samples;
120117

121118
module.exports = run;

lambda.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
const lambda = require(".");
66
const yargs = require("yargs");
77
const fs = require("fs");
8+
const path = require("path");
9+
10+
const helper = path.join(__dirname, "helper.txt");
11+
const comb = fs.readFileSync(helper, "utf8");
812

913
const opts = {
1014
algo: {
@@ -61,7 +65,7 @@ let input = argv._[0];
6165
if (!argv.expr)
6266
input = fs.readFileSync(input, "utf8");
6367

64-
input = lambda.samples.helper.concat(input);
68+
input = comb.concat(input);
6569

6670
if (argv.debug) {
6771
let eqn;

samples/index.js

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)