aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/specification/compositor/analysis/type.lux
diff options
context:
space:
mode:
authorEduardo Julian2021-07-28 04:48:42 -0400
committerEduardo Julian2021-07-28 04:48:42 -0400
commit5d4583aebd00adced10275b32ff1a93ab418be50 (patch)
tree89315e104e2b0ddd6d56f894f01a0575d3078699 /stdlib/source/specification/compositor/analysis/type.lux
parent061fd8a209bbcaffc2bfb850ac6046752a567d50 (diff)
Re-named List's tags: Nil => End && Cons => Item
Diffstat (limited to 'stdlib/source/specification/compositor/analysis/type.lux')
-rw-r--r--stdlib/source/specification/compositor/analysis/type.lux16
1 files changed, 8 insertions, 8 deletions
diff --git a/stdlib/source/specification/compositor/analysis/type.lux b/stdlib/source/specification/compositor/analysis/type.lux
index 4db867513..5a34eae36 100644
--- a/stdlib/source/specification/compositor/analysis/type.lux
+++ b/stdlib/source/specification/compositor/analysis/type.lux
@@ -20,10 +20,10 @@
["#/." scope]
["#/." type]]]]]])
-(def: (check-success+ expander state extension params output-type)
+(def: (check_success+ expander state extension params output_type)
(-> Expander State+ Text (List Code) Type Bit)
- (|> (analysis/scope.with-scope ""
- (analysis/type.with-type output-type
+ (|> (analysis/scope.with_scope ""
+ (analysis/type.with_type output_type
(analysis.phase expander (` ((~ (code.text extension)) (~+ params))))))
(phase.run state)
(case> (#try.Success _)
@@ -46,18 +46,18 @@
[r.nat (0 #0 "#I64" (0 #1 (0 #0 "#Nat" (0 #0)) (0 #0))) code.nat]
[r.int (0 #0 "#I64" (0 #1 (0 #0 "#Int" (0 #0)) (0 #0))) code.int]
[r.rev (0 #0 "#I64" (0 #1 (0 #0 "#Rev" (0 #0)) (0 #0))) code.rev]
- [r.safe-frac (0 #0 "#Frac" (0 #0)) code.frac]
- [(r.ascii/upper-alpha 5) (0 #0 "#Text" (0 #0)) code.text]
+ [r.safe_frac (0 #0 "#Frac" (0 #0)) code.frac]
+ [(r.ascii/upper_alpha 5) (0 #0 "#Text" (0 #0)) code.text]
)))))
(def: #export (spec expander state)
(-> Expander State+ Test)
(do r.monad
[[typeC exprT exprC] ..check
- [other-typeC other-exprT other-exprC] ..check]
+ [other_typeC other_exprT other_exprC] ..check]
($_ _.and
(_.test "lux check"
- (check-success+ expander state "lux check" (list typeC exprC) exprT))
+ (check_success+ expander state "lux check" (list typeC exprC) exprT))
(_.test "lux coerce"
- (check-success+ expander state "lux coerce" (list typeC other-exprC) exprT))
+ (check_success+ expander state "lux coerce" (list typeC other_exprC) exprT))
)))