diff options
Diffstat (limited to 'stdlib/source/library/lux/type/unit.lux')
-rw-r--r-- | stdlib/source/library/lux/type/unit.lux | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/stdlib/source/library/lux/type/unit.lux b/stdlib/source/library/lux/type/unit.lux index 511bbbb33..fcbfe0711 100644 --- a/stdlib/source/library/lux/type/unit.lux +++ b/stdlib/source/library/lux/type/unit.lux @@ -89,12 +89,12 @@ (-> Pure Int) ..out) -(syntax: .public (unit: {[export_policy type_name unit_name annotations] +(syntax: .public (unit: [[export_policy type_name unit_name annotations] (|export|.parser ($_ <>.and <code>.local_identifier <code>.local_identifier - (<>.else |annotations|.empty |annotations|.parser)))}) + (<>.else |annotations|.empty |annotations|.parser)))]) {#.doc (example "Define a unit of measurement." "Both the name of the type, and the name of the Unit implementation must be specified." (unit: .public Feet feet @@ -124,13 +124,13 @@ (n.> 0 denominator))] (in [numerator denominator])))) -(syntax: .public (scale: {[export_policy type_name scale_name ratio annotations] +(syntax: .public (scale: [[export_policy type_name scale_name ratio annotations] (|export|.parser ($_ <>.and <code>.local_identifier <code>.local_identifier ..scale - (<>.else |annotations|.empty |annotations|.parser)))}) + (<>.else |annotations|.empty |annotations|.parser)))]) {#.doc (example "Define a scale of magnitude." (scale: .public Bajillion bajillion [1 1,234,567,890] @@ -170,7 +170,7 @@ (i./ (.int denominator)) in))) -(syntax: (implementation_name {type_name <code>.local_identifier}) +(syntax: (implementation_name [type_name <code>.local_identifier]) (in (list (code.local_identifier (text.lower_cased type_name))))) (template [<type> <from> <to>] |