@fraczak/k 2.1.5 → 2.1.6
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/package.json +1 -1
- package/pretty.mjs +4 -0
- package/symbol-table.mjs +1 -1
package/package.json
CHANGED
package/pretty.mjs
CHANGED
|
@@ -47,6 +47,10 @@ function prettyRel (prettyCode, exp) {
|
|
|
47
47
|
"use strict";
|
|
48
48
|
const pretty = (exp) => {
|
|
49
49
|
switch (exp.op) {
|
|
50
|
+
case "pipe":
|
|
51
|
+
return `|`;
|
|
52
|
+
case "caret":
|
|
53
|
+
return `(${pretty(exp.caret)} ^)`;
|
|
50
54
|
case "vector":
|
|
51
55
|
return `[${exp.vector.map(pretty).join(", ")}]`;
|
|
52
56
|
case "union":
|
package/symbol-table.mjs
CHANGED
|
@@ -56,7 +56,7 @@ function comp_first(e1, e2) {
|
|
|
56
56
|
if (is_identity_rel(e1)) return e2;
|
|
57
57
|
if (is_identity_rel(e2)) return e1;
|
|
58
58
|
if (is_empty_rel(e1)) return e1;
|
|
59
|
-
if (is_empty_rel(e2)) return e2;
|
|
59
|
+
// if (is_empty_rel(e2)) return e2;
|
|
60
60
|
if (e1.op === "comp" && e2.op === "comp") {
|
|
61
61
|
return {
|
|
62
62
|
op: "comp",
|