functionalscript 0.0.592 → 0.1.594
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/ci.yml +3 -3
- package/README.md +1 -0
- package/com/cpp/{module.f.cjs → module.f.mjs} +22 -21
- package/com/cpp/{test.f.cjs → test.f.mjs} +2 -2
- package/com/cpp/testlib.f.mjs +9 -0
- package/com/cs/{module.f.cjs → module.f.mjs} +20 -19
- package/com/cs/{test.f.cjs → test.f.mjs} +2 -2
- package/com/cs/testlib.f.mjs +10 -0
- package/com/rust/{module.f.cjs → module.f.mjs} +37 -35
- package/com/rust/{test.f.cjs → test.f.mjs} +2 -2
- package/com/rust/testlib.f.mjs +10 -0
- package/com/test/{build.f.cjs → build.f.mjs} +6 -6
- package/com/test/{build.cjs → build.mjs} +16 -8
- package/com/types/{module.f.cjs → module.f.mjs} +9 -8
- package/com/types/{testlib.f.cjs → testlib.f.mjs} +2 -2
- package/commonjs/build/{module.f.cjs → module.f.mjs} +23 -23
- package/commonjs/build/{test.f.cjs → test.f.mjs} +13 -12
- package/commonjs/module/function/{module.f.cjs → module.f.mjs} +4 -4
- package/commonjs/module/{module.f.cjs → module.f.mjs} +3 -5
- package/commonjs/module.f.mjs +11 -0
- package/commonjs/{module.cjs → module.mjs} +8 -6
- package/commonjs/package/dependencies/{module.f.cjs → module.f.mjs} +5 -5
- package/commonjs/package/dependencies/{test.f.cjs → test.f.mjs} +2 -2
- package/commonjs/package/{module.f.cjs → module.f.mjs} +7 -6
- package/commonjs/package/{test.f.cjs → test.f.mjs} +2 -2
- package/commonjs/path/{module.f.cjs → module.f.mjs} +15 -14
- package/commonjs/path/{test.f.cjs → test.f.mjs} +16 -14
- package/commonjs/{test.cjs → test.mjs} +4 -4
- package/dev/{module.f.cjs → module.f.mjs} +1 -1
- package/dev/module.mjs +5 -3
- package/dev/test/{module.f.cjs → module.f.mjs} +21 -9
- package/dev/{test.f.cjs → test.f.mjs} +1 -1
- package/dev/test.mjs +1 -1
- package/djs/{module.f.cjs → module.f.mjs} +18 -15
- package/djs/parser/{module.f.cjs → module.f.mjs} +29 -28
- package/djs/parser/{test.f.cjs → test.f.mjs} +10 -8
- package/djs/{test.f.cjs → test.f.mjs} +7 -5
- package/djs/tokenizer/{module.f.cjs → module.f.mjs} +19 -18
- package/djs/tokenizer/{test.f.cjs → test.f.mjs} +9 -7
- package/fsc/{module.f.cjs → module.f.mjs} +17 -16
- package/fsc/{test.f.cjs → test.f.mjs} +6 -4
- package/fsm/{module.f.cjs → module.f.mjs} +28 -24
- package/fsm/{test.f.cjs → test.f.mjs} +13 -9
- package/html/{module.f.cjs → module.f.mjs} +16 -13
- package/html/{test.f.cjs → test.f.mjs} +5 -5
- package/index.f.mjs +45 -35
- package/issues/README.md +15 -0
- package/js/tokenizer/{module.f.cjs → module.f.mjs} +52 -51
- package/js/tokenizer/{test.f.cjs → test.f.mjs} +9 -7
- package/json/{module.f.cjs → module.f.mjs} +18 -17
- package/json/parser/{module.f.cjs → module.f.mjs} +27 -26
- package/json/parser/{test.f.cjs → test.f.mjs} +10 -8
- package/json/serializer/{module.f.cjs → module.f.mjs} +12 -12
- package/json/serializer/{test.f.cjs → test.f.mjs} +4 -3
- package/json/{test.f.cjs → test.f.mjs} +6 -4
- package/json/tokenizer/{module.f.cjs → module.f.mjs} +16 -15
- package/json/tokenizer/{test.f.cjs → test.f.mjs} +9 -7
- package/jsr.json +1 -1
- package/nodejs/version/main.mjs +5 -0
- package/nodejs/version/{module.f.cjs → module.f.mjs} +2 -2
- package/nodejs/version/{test.f.cjs → test.f.mjs} +5 -5
- package/package.json +3 -3
- package/prime_field/{module.f.cjs → module.f.mjs} +6 -5
- package/prime_field/{test.f.cjs → test.f.mjs} +3 -2
- package/secp/{module.f.cjs → module.f.mjs} +7 -6
- package/secp/{test.f.cjs → test.f.mjs} +6 -6
- package/sha2/{module.f.cjs → module.f.mjs} +5 -5
- package/sha2/{test.f.cjs → test.f.mjs} +7 -6
- package/text/ascii/{module.f.cjs → module.f.mjs} +3 -3
- package/text/ascii/test.f.mjs +14 -0
- package/text/{module.f.cjs → module.f.mjs} +6 -6
- package/text/sgr/{module.f.cjs → module.f.mjs} +1 -1
- package/text/{test.f.cjs → test.f.mjs} +5 -4
- package/text/utf16/{module.f.cjs → module.f.mjs} +16 -14
- package/text/utf16/{test.f.cjs → test.f.mjs} +7 -6
- package/text/utf8/{module.f.cjs → module.f.mjs} +11 -11
- package/text/utf8/{test.f.cjs → test.f.mjs} +6 -5
- package/tsconfig.json +2 -2
- package/types/array/{module.f.cjs → module.f.mjs} +2 -2
- package/types/array/{test.f.cjs → test.f.mjs} +5 -4
- package/types/bigfloat/{module.f.cjs → module.f.mjs} +3 -3
- package/types/bigfloat/{test.f.cjs → test.f.mjs} +3 -2
- package/types/bigint/{module.f.cjs → module.f.mjs} +8 -7
- package/types/bigint/{test.f.cjs → test.f.mjs} +3 -2
- package/types/btree/find/{module.f.cjs → module.f.mjs} +12 -12
- package/types/btree/find/{test.f.cjs → test.f.mjs} +11 -9
- package/types/btree/{module.f.cjs → module.f.mjs} +7 -12
- package/types/btree/remove/{module.f.cjs → module.f.mjs} +17 -16
- package/types/btree/remove/{test.f.cjs → test.f.mjs} +9 -7
- package/types/btree/set/{module.f.cjs → module.f.mjs} +9 -9
- package/types/btree/set/{test.f.cjs → test.f.mjs} +8 -6
- package/types/btree/{test.f.cjs → test.f.mjs} +23 -20
- package/types/btree/types/{module.f.cjs → module.f.mjs} +1 -1
- package/types/byte_set/{module.f.cjs → module.f.mjs} +8 -7
- package/types/byte_set/{test.f.cjs → test.f.mjs} +8 -7
- package/types/function/compare/{module.f.cjs → module.f.mjs} +2 -2
- package/types/function/compare/{test.f.cjs → test.f.mjs} +3 -2
- package/types/function/{module.f.cjs → module.f.mjs} +1 -5
- package/types/function/operator/{module.f.cjs → module.f.mjs} +1 -1
- package/types/function/{test.f.cjs → test.f.mjs} +4 -2
- package/types/list/{module.f.cjs → module.f.mjs} +12 -12
- package/types/list/{test.f.cjs → test.f.mjs} +13 -11
- package/types/map/{module.f.cjs → module.f.mjs} +21 -18
- package/types/map/{test.f.cjs → test.f.mjs} +5 -4
- package/types/nibble_set/{module.f.cjs → module.f.mjs} +1 -1
- package/types/nibble_set/{test.f.cjs → test.f.mjs} +4 -3
- package/types/nullable/{module.f.cjs → module.f.mjs} +1 -1
- package/types/nullable/{test.f.cjs → test.f.mjs} +2 -2
- package/types/number/module.f.mjs +26 -0
- package/types/number/{test.f.cjs → test.f.mjs} +3 -2
- package/types/object/{module.f.cjs → module.f.mjs} +6 -6
- package/types/object/{test.f.cjs → test.f.mjs} +2 -2
- package/types/range/{module.f.cjs → module.f.mjs} +1 -1
- package/types/range/{test.f.cjs → test.f.mjs} +2 -2
- package/types/range_map/{module.f.cjs → module.f.mjs} +16 -15
- package/types/range_map/{test.f.cjs → test.f.mjs} +35 -33
- package/types/result/{module.f.cjs → module.f.mjs} +1 -1
- package/types/result/{module.cjs → module.mjs} +3 -3
- package/types/sorted_list/{module.f.cjs → module.f.mjs} +11 -10
- package/types/sorted_list/{test.f.cjs → test.f.mjs} +14 -10
- package/types/sorted_set/{module.f.cjs → module.f.mjs} +8 -7
- package/types/sorted_set/{test.f.cjs → test.f.mjs} +14 -10
- package/types/string/{module.f.cjs → module.f.mjs} +8 -7
- package/types/string/{test.f.cjs → test.f.mjs} +5 -3
- package/types/string_set/{module.f.cjs → module.f.mjs} +15 -10
- package/types/string_set/{test.f.cjs → test.f.mjs} +2 -2
- package/com/cpp/testlib.f.cjs +0 -6
- package/com/cs/testlib.f.cjs +0 -6
- package/com/module.f.cjs +0 -6
- package/com/rust/testlib.f.cjs +0 -6
- package/commonjs/module.f.cjs +0 -20
- package/nodejs/module.f.cjs +0 -4
- package/nodejs/version/main.cjs +0 -6
- package/text/ascii/test.f.cjs +0 -12
- package/types/number/module.f.cjs +0 -24
- package/types/object/test.html +0 -9
|
@@ -1,68 +1,72 @@
|
|
|
1
|
-
|
|
1
|
+
import list, * as List from '../types/list/module.f.mjs'
|
|
2
2
|
const { equal, isEmpty, fold, toArray, scan, foldScan, empty: emptyList } = list
|
|
3
|
-
|
|
3
|
+
import byteSet, * as byteSetT from '../types/byte_set/module.f.mjs'
|
|
4
4
|
const { toRangeMap, union: byteSetUnion, one, empty } = byteSet
|
|
5
|
-
|
|
5
|
+
import sortedSet, * as SortedSet from '../types/sorted_set/module.f.mjs'
|
|
6
6
|
const { intersect, union: sortedSetUnion } = sortedSet
|
|
7
|
-
|
|
7
|
+
import rangeMap, * as RM from '../types/range_map/module.f.mjs'
|
|
8
8
|
const { merge } = rangeMap
|
|
9
|
-
|
|
10
|
-
const
|
|
9
|
+
import cmp from '../types/function/compare/module.f.mjs'
|
|
10
|
+
const { unsafeCmp } = cmp
|
|
11
|
+
import operator, * as Operator from '../types/function/operator/module.f.mjs'
|
|
11
12
|
const { strictEqual } = operator
|
|
12
|
-
|
|
13
|
-
const {
|
|
14
|
-
|
|
13
|
+
import j from '../json/module.f.mjs'
|
|
14
|
+
const { stringify } = j
|
|
15
|
+
import f from '../types/function/module.f.mjs'
|
|
16
|
+
const { identity } = f
|
|
17
|
+
import utf16 from '../text/utf16/module.f.mjs'
|
|
18
|
+
const { stringToList } = utf16
|
|
15
19
|
|
|
16
|
-
/** @typedef {readonly[string,
|
|
20
|
+
/** @typedef {readonly[string, byteSetT.ByteSet, string]} Rule */
|
|
17
21
|
|
|
18
|
-
/** @typedef {
|
|
22
|
+
/** @typedef {List.List<Rule>} Grammar */
|
|
19
23
|
|
|
20
24
|
/**
|
|
21
25
|
* @typedef {{
|
|
22
|
-
* readonly[state in string]:
|
|
26
|
+
* readonly[state in string]: RM.RangeMapArray<string>
|
|
23
27
|
* }} Dfa
|
|
24
28
|
*/
|
|
25
29
|
|
|
26
30
|
const stringifyIdentity = stringify(identity)
|
|
27
31
|
|
|
28
|
-
/** @type {(s: string) =>
|
|
32
|
+
/** @type {(s: string) => byteSetT.ByteSet} */
|
|
29
33
|
const toRange = s => {
|
|
30
34
|
const [b, e] = toArray(stringToList(s))
|
|
31
35
|
return byteSet.range([b, e])
|
|
32
36
|
}
|
|
33
37
|
|
|
34
|
-
/** @type {
|
|
38
|
+
/** @type {Operator.Fold<number, byteSetT.ByteSet>} */
|
|
35
39
|
const toUnionOp = i => bs => byteSetUnion(bs)(one(i))
|
|
36
40
|
|
|
37
|
-
/** @type {(s: string) =>
|
|
41
|
+
/** @type {(s: string) => byteSetT.ByteSet} */
|
|
38
42
|
const toUnion = s => {
|
|
39
43
|
const codePoints = stringToList(s)
|
|
40
44
|
return fold(toUnionOp)(empty)(codePoints)
|
|
41
45
|
}
|
|
42
46
|
|
|
43
|
-
/** @type {
|
|
47
|
+
/** @type {RM.Operators<SortedSet.SortedSet<string>>} */
|
|
44
48
|
const mergeOp = { union: sortedSetUnion(unsafeCmp), equal: equal(strictEqual) }
|
|
45
49
|
|
|
46
|
-
/** @type {(s: string) => (set:
|
|
50
|
+
/** @type {(s: string) => (set: SortedSet.SortedSet<string>) => boolean} */
|
|
47
51
|
const hasState = s => set => !isEmpty(intersect(unsafeCmp)([s])(set))
|
|
48
52
|
|
|
49
|
-
/** @type {(set:
|
|
53
|
+
/** @type {(set: SortedSet.SortedSet<string>) => Operator.Fold<Rule, RM.RangeMap<SortedSet.SortedSet<string>>>} */
|
|
50
54
|
const foldOp = set => ([ruleIn, bs, ruleOut]) => rm => {
|
|
51
55
|
if (hasState(ruleIn)(set)) { return merge(mergeOp)(rm)(toRangeMap(bs)(ruleOut)) }
|
|
52
56
|
return rm
|
|
53
57
|
}
|
|
54
58
|
|
|
55
|
-
/** @type {
|
|
59
|
+
/** @type {Operator.Scan<RM.Entry<SortedSet.SortedSet<string>>, RM.Entry<string>>} */
|
|
56
60
|
const stringifyOp = ([sortedSet, max]) => [[stringifyIdentity(sortedSet), max], stringifyOp]
|
|
57
61
|
|
|
58
62
|
const scanStringify = scan(stringifyOp)
|
|
59
63
|
|
|
60
|
-
/** @type {
|
|
64
|
+
/** @type {Operator.Scan<RM.Entry<SortedSet.SortedSet<string>>, SortedSet.SortedSet<string>>} */
|
|
61
65
|
const fetchOp = ([item, _]) => [item, fetchOp]
|
|
62
66
|
|
|
63
67
|
const scanFetch = scan(fetchOp)
|
|
64
68
|
|
|
65
|
-
/** @type {(grammar: Grammar) =>
|
|
69
|
+
/** @type {(grammar: Grammar) => Operator.Fold<SortedSet.SortedSet<string>, Dfa>} */
|
|
66
70
|
const addEntry = grammar => set => dfa => {
|
|
67
71
|
const s = stringifyIdentity(set)
|
|
68
72
|
if (s in dfa) { return dfa }
|
|
@@ -87,13 +91,13 @@ const dfa = grammar => addEntry(grammar)(initialState)({})
|
|
|
87
91
|
|
|
88
92
|
const get = rangeMap.get(emptyStateStringify)
|
|
89
93
|
|
|
90
|
-
/** @type {(dfa: Dfa) =>
|
|
94
|
+
/** @type {(dfa: Dfa) => Operator.Fold<number, string>} */
|
|
91
95
|
const runOp = dfa => input => s => get(input)(dfa[s])
|
|
92
96
|
|
|
93
|
-
/** @type {(dfa: Dfa) => (input:
|
|
97
|
+
/** @type {(dfa: Dfa) => (input: List.List<number>) => List.List<string>} */
|
|
94
98
|
const run = dfa => input => foldScan(runOp(dfa))(initialStateStringify)(input)
|
|
95
99
|
|
|
96
|
-
|
|
100
|
+
export default {
|
|
97
101
|
/** @readonly */
|
|
98
102
|
dfa,
|
|
99
103
|
/** @readonly */
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const {
|
|
1
|
+
import _, * as T from './module.f.mjs'
|
|
2
|
+
import byteSet from '../types/byte_set/module.f.mjs'
|
|
3
|
+
import o from '../types/object/module.f.mjs'
|
|
4
|
+
const { sort, fromEntries } = o
|
|
5
|
+
import json from '../json/module.f.mjs'
|
|
6
|
+
import f from '../types/function/module.f.mjs'
|
|
7
|
+
const { identity } = f
|
|
8
|
+
import list from '../types/list/module.f.mjs'
|
|
9
|
+
const { toArray } = list
|
|
10
|
+
import utf16 from '../text/utf16/module.f.mjs'
|
|
11
|
+
const { stringToList } = utf16
|
|
8
12
|
|
|
9
13
|
const stringifyIdentity = json.stringify(identity)
|
|
10
14
|
|
|
@@ -18,7 +22,7 @@ const buildDfa = () => {
|
|
|
18
22
|
const idNext = byteSet.union(idBegin)(digit)
|
|
19
23
|
const dot = _.toUnion('.')
|
|
20
24
|
|
|
21
|
-
/** @type {
|
|
25
|
+
/** @type {T.Grammar} */
|
|
22
26
|
const grammar = [
|
|
23
27
|
['', digit, 'int'],
|
|
24
28
|
['int', digit, 'int'],
|
|
@@ -33,7 +37,7 @@ const buildDfa = () => {
|
|
|
33
37
|
return _.dfa(grammar)
|
|
34
38
|
}
|
|
35
39
|
|
|
36
|
-
|
|
40
|
+
export default {
|
|
37
41
|
dfa: () => {
|
|
38
42
|
const dfa = buildDfa()
|
|
39
43
|
const entries = Object.entries(dfa)
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
import list, * as List from '../types/list/module.f.mjs'
|
|
2
2
|
const { map, flatMap, flat, concat: listConcat } = list
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
import s from '../types/string/module.f.mjs'
|
|
4
|
+
const { concat: stringConcat } = s
|
|
5
|
+
import object, * as O from '../types/object/module.f.mjs'
|
|
6
|
+
import f from '../types/function/module.f.mjs'
|
|
7
|
+
const { compose } = f
|
|
8
|
+
import utf16 from '../text/utf16/module.f.mjs'
|
|
9
|
+
const { stringToList } = utf16
|
|
7
10
|
const { fromCharCode } = String
|
|
8
11
|
const { entries } = Object
|
|
9
12
|
|
|
@@ -46,7 +49,7 @@ const isVoid = tag => voidTagList.includes(tag)
|
|
|
46
49
|
* }} Attributes
|
|
47
50
|
*/
|
|
48
51
|
|
|
49
|
-
/** @typedef {
|
|
52
|
+
/** @typedef {List.List<Node>} Nodes */
|
|
50
53
|
|
|
51
54
|
/** @typedef {Element | string} Node */
|
|
52
55
|
|
|
@@ -67,32 +70,32 @@ const escapeCharCode = code => {
|
|
|
67
70
|
|
|
68
71
|
const escape = compose(stringToList)(map(escapeCharCode))
|
|
69
72
|
|
|
70
|
-
/** @type {(n: Node) =>
|
|
73
|
+
/** @type {(n: Node) => List.List<string>} */
|
|
71
74
|
const node = n => typeof n === 'string' ? escape(n) : element(n)
|
|
72
75
|
|
|
73
76
|
const nodes = flatMap(node)
|
|
74
77
|
|
|
75
|
-
/** @type {(a:
|
|
78
|
+
/** @type {(a: O.Entry<string>) => List.List<string>} */
|
|
76
79
|
const attribute = ([name, value]) => flat([[' ', name, '="'], escape(value), ['"']])
|
|
77
80
|
|
|
78
|
-
/** @type {(a: Attributes) =>
|
|
81
|
+
/** @type {(a: Attributes) => List.List<string>} */
|
|
79
82
|
const attributes = compose(entries)(flatMap(attribute))
|
|
80
83
|
|
|
81
84
|
const open = (/** @type {Element2A} */[tag, a]) => flat([[`<`, tag], attributes(a), [`>`]])
|
|
82
85
|
|
|
83
86
|
const close = (/** @type {string}*/tag) => ['</', tag, '>']
|
|
84
87
|
|
|
85
|
-
/** @type {(_: Element3) =>
|
|
88
|
+
/** @type {(_: Element3) => List.List<string>} */
|
|
86
89
|
const element3 = ([tag, a, ns]) =>
|
|
87
90
|
flat([open([tag, a]), nodes(ns), close(tag)])
|
|
88
91
|
|
|
89
|
-
/** @type {(_: Element2A) =>
|
|
92
|
+
/** @type {(_: Element2A) => List.List<string>} */
|
|
90
93
|
const element2a = e => {
|
|
91
94
|
const [tag] = e
|
|
92
95
|
return flat([open(e), isVoid(tag) ? [] : close(tag)])
|
|
93
96
|
}
|
|
94
97
|
|
|
95
|
-
/** @type {(element: Element) =>
|
|
98
|
+
/** @type {(element: Element) => List.List<string>} */
|
|
96
99
|
const element = e => {
|
|
97
100
|
switch (e.length) {
|
|
98
101
|
case 1: { return element2a([e[0], {}]) }
|
|
@@ -112,7 +115,7 @@ const html = compose(element)(listConcat(['<!DOCTYPE html>']))
|
|
|
112
115
|
|
|
113
116
|
const htmlToString = compose(html)(stringConcat)
|
|
114
117
|
|
|
115
|
-
|
|
118
|
+
export default {
|
|
116
119
|
/** @readonly */
|
|
117
120
|
element,
|
|
118
121
|
/** @readonly */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import _, * as T from './module.f.mjs'
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
export default {
|
|
4
4
|
empty: () => {
|
|
5
5
|
const r = _.htmlToString(['html', []])
|
|
6
6
|
if (r !== '<!DOCTYPE html><html></html>') { throw r }
|
|
@@ -14,19 +14,19 @@ module.exports = {
|
|
|
14
14
|
if (r !== '<!DOCTYPE html><area>') { throw r }
|
|
15
15
|
},
|
|
16
16
|
some: () => {
|
|
17
|
-
/** @type {
|
|
17
|
+
/** @type {T.Element} */
|
|
18
18
|
const x = ['div', {}, ['<div>&</div>', ['a', { href: 'hello"' }, []]]]
|
|
19
19
|
const s = _.htmlToString(x)
|
|
20
20
|
if (s !== '<!DOCTYPE html><div><div>&amp;</div><a href="hello""></a></div>') { throw s }
|
|
21
21
|
},
|
|
22
22
|
some2: () => {
|
|
23
|
-
/** @type {
|
|
23
|
+
/** @type {T.Element} */
|
|
24
24
|
const x = ['div', ['<div>&</div>', ['a', { href: 'hello"' }, []]]]
|
|
25
25
|
const s = _.htmlToString(x)
|
|
26
26
|
if (s !== '<!DOCTYPE html><div><div>&amp;</div><a href="hello""></a></div>') { throw s }
|
|
27
27
|
},
|
|
28
28
|
someVoid: () => {
|
|
29
|
-
/** @type {
|
|
29
|
+
/** @type {T.Element} */
|
|
30
30
|
const x = ['div', [['br', {id: '5'}], '<div>&</div>', ['a', { href: 'hello"' }, []]]]
|
|
31
31
|
const s = _.htmlToString(x)
|
|
32
32
|
if (s !== '<!DOCTYPE html><div><br id="5"><div>&amp;</div><a href="hello""></a></div>') { throw s }
|
package/index.f.mjs
CHANGED
|
@@ -1,39 +1,47 @@
|
|
|
1
1
|
// Generated file.
|
|
2
|
-
import com from './com/module.f.
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import types$
|
|
20
|
-
import types$
|
|
21
|
-
import types$
|
|
22
|
-
import types$
|
|
23
|
-
import types$
|
|
24
|
-
import types$
|
|
25
|
-
import types$
|
|
26
|
-
import types$
|
|
27
|
-
import types$
|
|
28
|
-
import types$
|
|
29
|
-
import types$
|
|
30
|
-
import types$
|
|
31
|
-
import types$
|
|
32
|
-
import types$
|
|
33
|
-
import types$
|
|
34
|
-
import types$
|
|
2
|
+
import com$cpp from './com/cpp/module.f.mjs'
|
|
3
|
+
import com$cs from './com/cs/module.f.mjs'
|
|
4
|
+
import com$rust from './com/rust/module.f.mjs'
|
|
5
|
+
import com$types from './com/types/module.f.mjs'
|
|
6
|
+
import commonjs from './commonjs/module.f.mjs'
|
|
7
|
+
import dev from './dev/module.f.mjs'
|
|
8
|
+
import djs from './djs/module.f.mjs'
|
|
9
|
+
import fsc from './fsc/module.f.mjs'
|
|
10
|
+
import fsm from './fsm/module.f.mjs'
|
|
11
|
+
import html from './html/module.f.mjs'
|
|
12
|
+
import js$tokenizer from './js/tokenizer/module.f.mjs'
|
|
13
|
+
import json from './json/module.f.mjs'
|
|
14
|
+
import nodejs$version from './nodejs/version/module.f.mjs'
|
|
15
|
+
import prime_field from './prime_field/module.f.mjs'
|
|
16
|
+
import secp from './secp/module.f.mjs'
|
|
17
|
+
import sha2 from './sha2/module.f.mjs'
|
|
18
|
+
import text from './text/module.f.mjs'
|
|
19
|
+
import types$array from './types/array/module.f.mjs'
|
|
20
|
+
import types$bigfloat from './types/bigfloat/module.f.mjs'
|
|
21
|
+
import types$bigint from './types/bigint/module.f.mjs'
|
|
22
|
+
import types$btree from './types/btree/module.f.mjs'
|
|
23
|
+
import types$byte_set from './types/byte_set/module.f.mjs'
|
|
24
|
+
import types$function from './types/function/module.f.mjs'
|
|
25
|
+
import types$list from './types/list/module.f.mjs'
|
|
26
|
+
import types$map from './types/map/module.f.mjs'
|
|
27
|
+
import types$nibble_set from './types/nibble_set/module.f.mjs'
|
|
28
|
+
import types$nullable from './types/nullable/module.f.mjs'
|
|
29
|
+
import types$number from './types/number/module.f.mjs'
|
|
30
|
+
import types$object from './types/object/module.f.mjs'
|
|
31
|
+
import types$range from './types/range/module.f.mjs'
|
|
32
|
+
import types$range_map from './types/range_map/module.f.mjs'
|
|
33
|
+
import types$result from './types/result/module.f.mjs'
|
|
34
|
+
import types$sorted_list from './types/sorted_list/module.f.mjs'
|
|
35
|
+
import types$sorted_set from './types/sorted_set/module.f.mjs'
|
|
36
|
+
import types$string from './types/string/module.f.mjs'
|
|
37
|
+
import types$string_set from './types/string_set/module.f.mjs'
|
|
35
38
|
export default {
|
|
36
|
-
com:
|
|
39
|
+
com: {
|
|
40
|
+
cpp: com$cpp,
|
|
41
|
+
cs: com$cs,
|
|
42
|
+
rust: com$rust,
|
|
43
|
+
types: com$types,
|
|
44
|
+
},
|
|
37
45
|
commonjs: commonjs,
|
|
38
46
|
dev: dev,
|
|
39
47
|
djs: djs,
|
|
@@ -44,7 +52,9 @@ export default {
|
|
|
44
52
|
tokenizer: js$tokenizer,
|
|
45
53
|
},
|
|
46
54
|
json: json,
|
|
47
|
-
nodejs:
|
|
55
|
+
nodejs: {
|
|
56
|
+
version: nodejs$version,
|
|
57
|
+
},
|
|
48
58
|
prime_field: prime_field,
|
|
49
59
|
secp: secp,
|
|
50
60
|
sha2: sha2,
|
package/issues/README.md
CHANGED
|
@@ -3,3 +3,18 @@
|
|
|
3
3
|
1. [X] [test-debug](./test-debug.md).
|
|
4
4
|
2. [ ] [esm](./esm.md)
|
|
5
5
|
3. [ ] [publish](publish.md)
|
|
6
|
+
4. [ ] fix index generation by including sub modules `{ ...m, add: mAdd, remove: mRemove}`.
|
|
7
|
+
5. [ ] Conventions:
|
|
8
|
+
```js
|
|
9
|
+
import list, * as List from 'list.mjs'
|
|
10
|
+
// list is for objects.
|
|
11
|
+
// List is for types and should be ignored by FJS or errored if used in code.
|
|
12
|
+
```
|
|
13
|
+
6. [ ] PoC: Replace `while` with recursive generators
|
|
14
|
+
7. Two sets of property filters:
|
|
15
|
+
- usage `.b`:
|
|
16
|
+
- `constructor`
|
|
17
|
+
- ...
|
|
18
|
+
- call `.b()`:
|
|
19
|
+
- `push`
|
|
20
|
+
- ...
|