-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expand Elm evaluation engine for module-level bindings
+ Add test scenario using module-level binding. + Expand productive implementation to make the new test scenario work.
- Loading branch information
Showing
8 changed files
with
479 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
150 changes: 150 additions & 0 deletions
150
implement/test/elm-evaluation-scenarios/just-a-literal/2020-07-11-inspect-elm-syntax.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,150 @@ | ||
{ | ||
"Ok": { | ||
"moduleDefinition": { | ||
"range": [ | ||
1, | ||
1, | ||
1, | ||
39 | ||
], | ||
"value": { | ||
"type": "normal", | ||
"normal": { | ||
"moduleName": { | ||
"range": [ | ||
1, | ||
8, | ||
1, | ||
12 | ||
], | ||
"value": [ | ||
"Main" | ||
] | ||
}, | ||
"exposingList": { | ||
"range": [ | ||
1, | ||
13, | ||
1, | ||
39 | ||
], | ||
"value": { | ||
"type": "explicit", | ||
"explicit": [ | ||
{ | ||
"range": [ | ||
1, | ||
23, | ||
1, | ||
38 | ||
], | ||
"value": { | ||
"type": "function", | ||
"function": { | ||
"name": "evaluation_root" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"imports": [], | ||
"declarations": [ | ||
{ | ||
"range": [ | ||
4, | ||
1, | ||
6, | ||
24 | ||
], | ||
"value": { | ||
"type": "function", | ||
"function": { | ||
"documentation": null, | ||
"signature": { | ||
"range": [ | ||
4, | ||
1, | ||
4, | ||
25 | ||
], | ||
"value": { | ||
"name": { | ||
"range": [ | ||
4, | ||
1, | ||
4, | ||
16 | ||
], | ||
"value": "evaluation_root" | ||
}, | ||
"typeAnnotation": { | ||
"range": [ | ||
4, | ||
19, | ||
4, | ||
25 | ||
], | ||
"value": { | ||
"type": "typed", | ||
"typed": { | ||
"moduleNameAndName": { | ||
"range": [ | ||
4, | ||
19, | ||
4, | ||
25 | ||
], | ||
"value": { | ||
"moduleName": [], | ||
"name": "String" | ||
} | ||
}, | ||
"args": [] | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"declaration": { | ||
"range": [ | ||
5, | ||
1, | ||
6, | ||
24 | ||
], | ||
"value": { | ||
"name": { | ||
"range": [ | ||
5, | ||
1, | ||
5, | ||
16 | ||
], | ||
"value": "evaluation_root" | ||
}, | ||
"arguments": [], | ||
"expression": { | ||
"range": [ | ||
6, | ||
5, | ||
6, | ||
24 | ||
], | ||
"value": { | ||
"type": "literal", | ||
"literal": "just a literal ✔️" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
], | ||
"comments": [] | ||
} | ||
} |
Oops, something went wrong.