-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.js
32 lines (27 loc) · 935 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
'use strict';
var assembler = require('signet-assembler');
var checkerBuilder = require('signet-checker');
var signetParser = require('signet-parser');
var registrarBuilder = require('signet-registrar');
var typelogBuilder = require('signet-typelog');
var validatorBuilder = require('signet-validator');
var signetBuilder = require('./bin/signet');
var duckTypes = require('./bin/duckTypes');
var coreTypes = require('./bin/coreTypes');
var recursiveTypes = require('./bin/recursiveTypes');
module.exports = function () {
var parser = signetParser();
var registrar = registrarBuilder();
var checker = checkerBuilder(registrar);
var typelog = typelogBuilder(registrar, parser);
var validator = validatorBuilder(typelog, assembler);
return signetBuilder(
typelog,
validator,
checker,
parser,
assembler,
duckTypes,
coreTypes,
recursiveTypes);
};