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.
Files changed (136) hide show
  1. package/.github/workflows/ci.yml +3 -3
  2. package/README.md +1 -0
  3. package/com/cpp/{module.f.cjs → module.f.mjs} +22 -21
  4. package/com/cpp/{test.f.cjs → test.f.mjs} +2 -2
  5. package/com/cpp/testlib.f.mjs +9 -0
  6. package/com/cs/{module.f.cjs → module.f.mjs} +20 -19
  7. package/com/cs/{test.f.cjs → test.f.mjs} +2 -2
  8. package/com/cs/testlib.f.mjs +10 -0
  9. package/com/rust/{module.f.cjs → module.f.mjs} +37 -35
  10. package/com/rust/{test.f.cjs → test.f.mjs} +2 -2
  11. package/com/rust/testlib.f.mjs +10 -0
  12. package/com/test/{build.f.cjs → build.f.mjs} +6 -6
  13. package/com/test/{build.cjs → build.mjs} +16 -8
  14. package/com/types/{module.f.cjs → module.f.mjs} +9 -8
  15. package/com/types/{testlib.f.cjs → testlib.f.mjs} +2 -2
  16. package/commonjs/build/{module.f.cjs → module.f.mjs} +23 -23
  17. package/commonjs/build/{test.f.cjs → test.f.mjs} +13 -12
  18. package/commonjs/module/function/{module.f.cjs → module.f.mjs} +4 -4
  19. package/commonjs/module/{module.f.cjs → module.f.mjs} +3 -5
  20. package/commonjs/module.f.mjs +11 -0
  21. package/commonjs/{module.cjs → module.mjs} +8 -6
  22. package/commonjs/package/dependencies/{module.f.cjs → module.f.mjs} +5 -5
  23. package/commonjs/package/dependencies/{test.f.cjs → test.f.mjs} +2 -2
  24. package/commonjs/package/{module.f.cjs → module.f.mjs} +7 -6
  25. package/commonjs/package/{test.f.cjs → test.f.mjs} +2 -2
  26. package/commonjs/path/{module.f.cjs → module.f.mjs} +15 -14
  27. package/commonjs/path/{test.f.cjs → test.f.mjs} +16 -14
  28. package/commonjs/{test.cjs → test.mjs} +4 -4
  29. package/dev/{module.f.cjs → module.f.mjs} +1 -1
  30. package/dev/module.mjs +5 -3
  31. package/dev/test/{module.f.cjs → module.f.mjs} +21 -9
  32. package/dev/{test.f.cjs → test.f.mjs} +1 -1
  33. package/dev/test.mjs +1 -1
  34. package/djs/{module.f.cjs → module.f.mjs} +18 -15
  35. package/djs/parser/{module.f.cjs → module.f.mjs} +29 -28
  36. package/djs/parser/{test.f.cjs → test.f.mjs} +10 -8
  37. package/djs/{test.f.cjs → test.f.mjs} +7 -5
  38. package/djs/tokenizer/{module.f.cjs → module.f.mjs} +19 -18
  39. package/djs/tokenizer/{test.f.cjs → test.f.mjs} +9 -7
  40. package/fsc/{module.f.cjs → module.f.mjs} +17 -16
  41. package/fsc/{test.f.cjs → test.f.mjs} +6 -4
  42. package/fsm/{module.f.cjs → module.f.mjs} +28 -24
  43. package/fsm/{test.f.cjs → test.f.mjs} +13 -9
  44. package/html/{module.f.cjs → module.f.mjs} +16 -13
  45. package/html/{test.f.cjs → test.f.mjs} +5 -5
  46. package/index.f.mjs +45 -35
  47. package/issues/README.md +15 -0
  48. package/js/tokenizer/{module.f.cjs → module.f.mjs} +52 -51
  49. package/js/tokenizer/{test.f.cjs → test.f.mjs} +9 -7
  50. package/json/{module.f.cjs → module.f.mjs} +18 -17
  51. package/json/parser/{module.f.cjs → module.f.mjs} +27 -26
  52. package/json/parser/{test.f.cjs → test.f.mjs} +10 -8
  53. package/json/serializer/{module.f.cjs → module.f.mjs} +12 -12
  54. package/json/serializer/{test.f.cjs → test.f.mjs} +4 -3
  55. package/json/{test.f.cjs → test.f.mjs} +6 -4
  56. package/json/tokenizer/{module.f.cjs → module.f.mjs} +16 -15
  57. package/json/tokenizer/{test.f.cjs → test.f.mjs} +9 -7
  58. package/jsr.json +1 -1
  59. package/nodejs/version/main.mjs +5 -0
  60. package/nodejs/version/{module.f.cjs → module.f.mjs} +2 -2
  61. package/nodejs/version/{test.f.cjs → test.f.mjs} +5 -5
  62. package/package.json +3 -3
  63. package/prime_field/{module.f.cjs → module.f.mjs} +6 -5
  64. package/prime_field/{test.f.cjs → test.f.mjs} +3 -2
  65. package/secp/{module.f.cjs → module.f.mjs} +7 -6
  66. package/secp/{test.f.cjs → test.f.mjs} +6 -6
  67. package/sha2/{module.f.cjs → module.f.mjs} +5 -5
  68. package/sha2/{test.f.cjs → test.f.mjs} +7 -6
  69. package/text/ascii/{module.f.cjs → module.f.mjs} +3 -3
  70. package/text/ascii/test.f.mjs +14 -0
  71. package/text/{module.f.cjs → module.f.mjs} +6 -6
  72. package/text/sgr/{module.f.cjs → module.f.mjs} +1 -1
  73. package/text/{test.f.cjs → test.f.mjs} +5 -4
  74. package/text/utf16/{module.f.cjs → module.f.mjs} +16 -14
  75. package/text/utf16/{test.f.cjs → test.f.mjs} +7 -6
  76. package/text/utf8/{module.f.cjs → module.f.mjs} +11 -11
  77. package/text/utf8/{test.f.cjs → test.f.mjs} +6 -5
  78. package/tsconfig.json +2 -2
  79. package/types/array/{module.f.cjs → module.f.mjs} +2 -2
  80. package/types/array/{test.f.cjs → test.f.mjs} +5 -4
  81. package/types/bigfloat/{module.f.cjs → module.f.mjs} +3 -3
  82. package/types/bigfloat/{test.f.cjs → test.f.mjs} +3 -2
  83. package/types/bigint/{module.f.cjs → module.f.mjs} +8 -7
  84. package/types/bigint/{test.f.cjs → test.f.mjs} +3 -2
  85. package/types/btree/find/{module.f.cjs → module.f.mjs} +12 -12
  86. package/types/btree/find/{test.f.cjs → test.f.mjs} +11 -9
  87. package/types/btree/{module.f.cjs → module.f.mjs} +7 -12
  88. package/types/btree/remove/{module.f.cjs → module.f.mjs} +17 -16
  89. package/types/btree/remove/{test.f.cjs → test.f.mjs} +9 -7
  90. package/types/btree/set/{module.f.cjs → module.f.mjs} +9 -9
  91. package/types/btree/set/{test.f.cjs → test.f.mjs} +8 -6
  92. package/types/btree/{test.f.cjs → test.f.mjs} +23 -20
  93. package/types/btree/types/{module.f.cjs → module.f.mjs} +1 -1
  94. package/types/byte_set/{module.f.cjs → module.f.mjs} +8 -7
  95. package/types/byte_set/{test.f.cjs → test.f.mjs} +8 -7
  96. package/types/function/compare/{module.f.cjs → module.f.mjs} +2 -2
  97. package/types/function/compare/{test.f.cjs → test.f.mjs} +3 -2
  98. package/types/function/{module.f.cjs → module.f.mjs} +1 -5
  99. package/types/function/operator/{module.f.cjs → module.f.mjs} +1 -1
  100. package/types/function/{test.f.cjs → test.f.mjs} +4 -2
  101. package/types/list/{module.f.cjs → module.f.mjs} +12 -12
  102. package/types/list/{test.f.cjs → test.f.mjs} +13 -11
  103. package/types/map/{module.f.cjs → module.f.mjs} +21 -18
  104. package/types/map/{test.f.cjs → test.f.mjs} +5 -4
  105. package/types/nibble_set/{module.f.cjs → module.f.mjs} +1 -1
  106. package/types/nibble_set/{test.f.cjs → test.f.mjs} +4 -3
  107. package/types/nullable/{module.f.cjs → module.f.mjs} +1 -1
  108. package/types/nullable/{test.f.cjs → test.f.mjs} +2 -2
  109. package/types/number/module.f.mjs +26 -0
  110. package/types/number/{test.f.cjs → test.f.mjs} +3 -2
  111. package/types/object/{module.f.cjs → module.f.mjs} +6 -6
  112. package/types/object/{test.f.cjs → test.f.mjs} +2 -2
  113. package/types/range/{module.f.cjs → module.f.mjs} +1 -1
  114. package/types/range/{test.f.cjs → test.f.mjs} +2 -2
  115. package/types/range_map/{module.f.cjs → module.f.mjs} +16 -15
  116. package/types/range_map/{test.f.cjs → test.f.mjs} +35 -33
  117. package/types/result/{module.f.cjs → module.f.mjs} +1 -1
  118. package/types/result/{module.cjs → module.mjs} +3 -3
  119. package/types/sorted_list/{module.f.cjs → module.f.mjs} +11 -10
  120. package/types/sorted_list/{test.f.cjs → test.f.mjs} +14 -10
  121. package/types/sorted_set/{module.f.cjs → module.f.mjs} +8 -7
  122. package/types/sorted_set/{test.f.cjs → test.f.mjs} +14 -10
  123. package/types/string/{module.f.cjs → module.f.mjs} +8 -7
  124. package/types/string/{test.f.cjs → test.f.mjs} +5 -3
  125. package/types/string_set/{module.f.cjs → module.f.mjs} +15 -10
  126. package/types/string_set/{test.f.cjs → test.f.mjs} +2 -2
  127. package/com/cpp/testlib.f.cjs +0 -6
  128. package/com/cs/testlib.f.cjs +0 -6
  129. package/com/module.f.cjs +0 -6
  130. package/com/rust/testlib.f.cjs +0 -6
  131. package/commonjs/module.f.cjs +0 -20
  132. package/nodejs/module.f.cjs +0 -4
  133. package/nodejs/version/main.cjs +0 -6
  134. package/text/ascii/test.f.cjs +0 -12
  135. package/types/number/module.f.cjs +0 -24
  136. package/types/object/test.html +0 -9
@@ -1,68 +1,72 @@
1
- const list = require('../types/list/module.f.cjs')
1
+ import list, * as List from '../types/list/module.f.mjs'
2
2
  const { equal, isEmpty, fold, toArray, scan, foldScan, empty: emptyList } = list
3
- const byteSet = require('../types/byte_set/module.f.cjs')
3
+ import byteSet, * as byteSetT from '../types/byte_set/module.f.mjs'
4
4
  const { toRangeMap, union: byteSetUnion, one, empty } = byteSet
5
- const sortedSet = require('../types/sorted_set/module.f.cjs')
5
+ import sortedSet, * as SortedSet from '../types/sorted_set/module.f.mjs'
6
6
  const { intersect, union: sortedSetUnion } = sortedSet
7
- const rangeMap = require('../types/range_map/module.f.cjs')
7
+ import rangeMap, * as RM from '../types/range_map/module.f.mjs'
8
8
  const { merge } = rangeMap
9
- const { unsafeCmp } = require('../types/function/compare/module.f.cjs')
10
- const operator = require("../types/function/operator/module.f.cjs")
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
- const { stringify } = require('../json/module.f.cjs')
13
- const { identity } = require('../types/function/module.f.cjs')
14
- const { stringToList } = require('../text/utf16/module.f.cjs')
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, byteSet.ByteSet, string]} Rule */
20
+ /** @typedef {readonly[string, byteSetT.ByteSet, string]} Rule */
17
21
 
18
- /** @typedef {list.List<Rule>} Grammar */
22
+ /** @typedef {List.List<Rule>} Grammar */
19
23
 
20
24
  /**
21
25
  * @typedef {{
22
- * readonly[state in string]: rangeMap.RangeMapArray<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) => byteSet.ByteSet} */
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 {operator.Fold<number, byteSet.ByteSet>} */
38
+ /** @type {Operator.Fold<number, byteSetT.ByteSet>} */
35
39
  const toUnionOp = i => bs => byteSetUnion(bs)(one(i))
36
40
 
37
- /** @type {(s: string) => byteSet.ByteSet} */
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 {rangeMap.Operators<sortedSet.SortedSet<string>>} */
47
+ /** @type {RM.Operators<SortedSet.SortedSet<string>>} */
44
48
  const mergeOp = { union: sortedSetUnion(unsafeCmp), equal: equal(strictEqual) }
45
49
 
46
- /** @type {(s: string) => (set: sortedSet.SortedSet<string>) => boolean} */
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: sortedSet.SortedSet<string>) => operator.Fold<Rule, rangeMap.RangeMap<sortedSet.SortedSet<string>>>} */
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 {operator.Scan<rangeMap.Entry<sortedSet.SortedSet<string>>, rangeMap.Entry<string>>} */
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 {operator.Scan<rangeMap.Entry<sortedSet.SortedSet<string>>, sortedSet.SortedSet<string>>} */
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) => operator.Fold<sortedSet.SortedSet<string>, Dfa>} */
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) => operator.Fold<number, string>} */
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: list.List<number>) => list.List<string>} */
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
- module.exports = {
100
+ export default {
97
101
  /** @readonly */
98
102
  dfa,
99
103
  /** @readonly */
@@ -1,10 +1,14 @@
1
- const _ = require('./module.f.cjs')
2
- const byteSet = require('../types/byte_set/module.f.cjs')
3
- const { sort, fromEntries } = require('../types/object/module.f.cjs')
4
- const json = require('../json/module.f.cjs')
5
- const { identity } = require('../types/function/module.f.cjs')
6
- const { toArray } = require('../types/list/module.f.cjs')
7
- const { stringToList } = require('../text/utf16/module.f.cjs')
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 {_.Grammar} */
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
- module.exports = {
40
+ export default {
37
41
  dfa: () => {
38
42
  const dfa = buildDfa()
39
43
  const entries = Object.entries(dfa)
@@ -1,9 +1,12 @@
1
- const list = require('../types/list/module.f.cjs')
1
+ import list, * as List from '../types/list/module.f.mjs'
2
2
  const { map, flatMap, flat, concat: listConcat } = list
3
- const { concat: stringConcat } = require('../types/string/module.f.cjs')
4
- const object = require('../types/object/module.f.cjs')
5
- const { compose } = require('../types/function/module.f.cjs')
6
- const { stringToList } = require('../text/utf16/module.f.cjs')
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 {list.List<Node>} Nodes */
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) => list.List<string>} */
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: object.Entry<string>) => list.List<string>} */
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) => list.List<string>} */
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) => list.List<string>} */
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) => list.List<string>} */
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) => list.List<string>} */
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
- module.exports = {
118
+ export default {
116
119
  /** @readonly */
117
120
  element,
118
121
  /** @readonly */
@@ -1,6 +1,6 @@
1
- const _ = require('./module.f.cjs')
1
+ import _, * as T from './module.f.mjs'
2
2
 
3
- module.exports = {
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 {_.Element} */
17
+ /** @type {T.Element} */
18
18
  const x = ['div', {}, ['<div>&amp;</div>', ['a', { href: 'hello"' }, []]]]
19
19
  const s = _.htmlToString(x)
20
20
  if (s !== '<!DOCTYPE html><div>&lt;div&gt;&amp;amp;&lt;/div&gt;<a href="hello&quot;"></a></div>') { throw s }
21
21
  },
22
22
  some2: () => {
23
- /** @type {_.Element} */
23
+ /** @type {T.Element} */
24
24
  const x = ['div', ['<div>&amp;</div>', ['a', { href: 'hello"' }, []]]]
25
25
  const s = _.htmlToString(x)
26
26
  if (s !== '<!DOCTYPE html><div>&lt;div&gt;&amp;amp;&lt;/div&gt;<a href="hello&quot;"></a></div>') { throw s }
27
27
  },
28
28
  someVoid: () => {
29
- /** @type {_.Element} */
29
+ /** @type {T.Element} */
30
30
  const x = ['div', [['br', {id: '5'}], '<div>&amp;</div>', ['a', { href: 'hello"' }, []]]]
31
31
  const s = _.htmlToString(x)
32
32
  if (s !== '<!DOCTYPE html><div><br id="5">&lt;div&gt;&amp;amp;&lt;/div&gt;<a href="hello&quot;"></a></div>') { throw s }
package/index.f.mjs CHANGED
@@ -1,39 +1,47 @@
1
1
  // Generated file.
2
- import com from './com/module.f.cjs'
3
- import commonjs from './commonjs/module.f.cjs'
4
- import dev from './dev/module.f.cjs'
5
- import djs from './djs/module.f.cjs'
6
- import fsc from './fsc/module.f.cjs'
7
- import fsm from './fsm/module.f.cjs'
8
- import html from './html/module.f.cjs'
9
- import js$tokenizer from './js/tokenizer/module.f.cjs'
10
- import json from './json/module.f.cjs'
11
- import nodejs from './nodejs/module.f.cjs'
12
- import prime_field from './prime_field/module.f.cjs'
13
- import secp from './secp/module.f.cjs'
14
- import sha2 from './sha2/module.f.cjs'
15
- import text from './text/module.f.cjs'
16
- import types$array from './types/array/module.f.cjs'
17
- import types$bigfloat from './types/bigfloat/module.f.cjs'
18
- import types$bigint from './types/bigint/module.f.cjs'
19
- import types$btree from './types/btree/module.f.cjs'
20
- import types$byte_set from './types/byte_set/module.f.cjs'
21
- import types$function from './types/function/module.f.cjs'
22
- import types$list from './types/list/module.f.cjs'
23
- import types$map from './types/map/module.f.cjs'
24
- import types$nibble_set from './types/nibble_set/module.f.cjs'
25
- import types$nullable from './types/nullable/module.f.cjs'
26
- import types$number from './types/number/module.f.cjs'
27
- import types$object from './types/object/module.f.cjs'
28
- import types$range from './types/range/module.f.cjs'
29
- import types$range_map from './types/range_map/module.f.cjs'
30
- import types$result from './types/result/module.f.cjs'
31
- import types$sorted_list from './types/sorted_list/module.f.cjs'
32
- import types$sorted_set from './types/sorted_set/module.f.cjs'
33
- import types$string from './types/string/module.f.cjs'
34
- import types$string_set from './types/string_set/module.f.cjs'
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: 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: 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
+ - ...