diff options
Diffstat (limited to 'stdlib/source/lux/target/python.lux')
-rw-r--r-- | stdlib/source/lux/target/python.lux | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/stdlib/source/lux/target/python.lux b/stdlib/source/lux/target/python.lux index 3f0211e33..6edba8f89 100644 --- a/stdlib/source/lux/target/python.lux +++ b/stdlib/source/lux/target/python.lux @@ -1,6 +1,8 @@ (.module: [lux (#- Location Code not or and list if cond int comment) [abstract + [equivalence (#+ Equivalence)] + [hash (#+ Hash)] ["." enum]] [control [pipe (#+ new> case> cond>)] @@ -34,6 +36,18 @@ (abstract: #export (Code brand) Text + (structure: #export equivalence + (All [brand] (Equivalence (Code brand))) + + (def: (= reference subject) + (\ text.equivalence = (:representation reference) (:representation subject)))) + + (structure: #export hash + (All [brand] (Hash (Code brand))) + + (def: &equivalence ..equivalence) + (def: hash (|>> :representation (\ text.hash hash)))) + (def: #export manual (-> Text Code) (|>> :abstraction)) |