occam-furtle 3.0.22 → 3.0.25

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "occam-furtle",
3
3
  "author": "James Smith",
4
- "version": "3.0.22",
4
+ "version": "3.0.25",
5
5
  "license": "MIT, Anti-996",
6
6
  "homepage": "https://github.com/djalbat/occam-furtle",
7
7
  "description": "Occam's Furtle language.",
@@ -26,7 +26,7 @@
26
26
  "juxtapose": "^4.0.130",
27
27
  "lively-cli": "^2.0.77",
28
28
  "occam-custom-grammars": "^5.0.1369",
29
- "occam-model": "^1.0.487",
29
+ "occam-model": "^1.0.489",
30
30
  "occam-query": "^4.1.142",
31
31
  "watchful-cli": "^1.7.67"
32
32
  },
@@ -119,7 +119,7 @@ class ReleaseContext {
119
119
  this.initialised = true;
120
120
  }
121
121
 
122
- verify() {
122
+ async verify() {
123
123
  let verifies = false;
124
124
 
125
125
  const verifiedFileContexts = [],
package/test/main.js CHANGED
@@ -24,22 +24,25 @@ entries.addFile(nominalFile);
24
24
 
25
25
  releaseContext.initialise();
26
26
 
27
- releaseContext.verify();
28
-
29
- const nominalFilePath = nominalFile.getPath(),
30
- nominalFileContext = releaseContext.findFileContext(nominalFilePath),
31
- free = true,
32
- terms = termsFromNominalFileContext(nominalFileContext, free),
33
- procedure = procedureFromReleaseContext(releaseContext),
34
- furtleFilePath = furtleFile.getPath(),
35
- furtleFileContext = releaseContext.findFileContext(furtleFilePath),
36
- fileContext = furtleFileContext, ///
37
- context = fileContext; ///
38
-
39
- procedure.call(terms, context)
40
- .then((term) => {
41
- const primitiveValue = term.getPrimitiveValue(),
42
- boolean = primitiveValue; ///
43
-
44
- console.log(boolean);
45
- });
27
+ releaseContext.verify()
28
+ .then(callProcedure);
29
+
30
+ function callProcedure() {
31
+ const nominalFilePath = nominalFile.getPath(),
32
+ nominalFileContext = releaseContext.findFileContext(nominalFilePath),
33
+ free = true,
34
+ terms = termsFromNominalFileContext(nominalFileContext, free),
35
+ procedure = procedureFromReleaseContext(releaseContext),
36
+ furtleFilePath = furtleFile.getPath(),
37
+ furtleFileContext = releaseContext.findFileContext(furtleFilePath),
38
+ fileContext = furtleFileContext, ///
39
+ context = fileContext; ///
40
+
41
+ procedure.call(terms, context)
42
+ .then((term) => {
43
+ const primitiveValue = term.getPrimitiveValue(),
44
+ boolean = primitiveValue; ///
45
+
46
+ console.log(boolean);
47
+ });
48
+ }