From 0d909187d5b9effcd08f533d50af7d29c0d6bfd8 Mon Sep 17 00:00:00 2001 From: Eduardo Julian Date: Fri, 8 Apr 2022 05:42:36 -0400 Subject: De-sigil-ification: $ --- licentia/source/program/licentia/input.lux | 98 +++++++++++----------- .../program/licentia/license/distribution.lux | 14 ++-- 2 files changed, 56 insertions(+), 56 deletions(-) (limited to 'licentia/source/program') diff --git a/licentia/source/program/licentia/input.lux b/licentia/source/program/licentia/input.lux index 23e8ab29e..b92d0e52e 100644 --- a/licentia/source/program/licentia/input.lux +++ b/licentia/source/program/licentia/input.lux @@ -32,9 +32,9 @@ (def: identification (Parser Identification) (.object - ($_ <>.and - (.field "name" .string) - (.field "version" .string)))) + (all <>.and + (.field "name" .string) + (.field "version" .string)))) (exception: .public (cannot_use_fractional_amount [amount Frac]) (exception.report @@ -76,48 +76,48 @@ (def: copyright_holder (Parser copyright.Holder) (.object - ($_ <>.and - (.field "name" .string) - (.field "period" ..period)))) + (all <>.and + (.field "name" .string) + (.field "period" ..period)))) (def: termination (Parser Termination) (.object - ($_ <>.and - (.field "patent retaliation?" .boolean) - (.field "termination period" ..amount) - (.field "grace period" ..amount)))) + (all <>.and + (.field "patent retaliation?" .boolean) + (.field "termination period" ..amount) + (.field "grace period" ..amount)))) (def: liability (Parser Liability) (.object - ($_ <>.and - (.field "can accept?" .boolean) - (.field "disclaim high risk?" .boolean)))) + (all <>.and + (.field "can accept?" .boolean) + (.field "disclaim high risk?" .boolean)))) (def: distribution (Parser Distribution) (.object - ($_ <>.and - (.field "can re-license?" .boolean) - (.field "can multi-license?" .boolean)))) + (all <>.and + (.field "can re-license?" .boolean) + (.field "can multi-license?" .boolean)))) (def: commercial (Parser Commercial) (.object - ($_ <>.and - (.field "can sell?" .boolean) - (.field "require contributor credit?" .boolean) - (.field "allow contributor endorsement?" .boolean)))) + (all <>.and + (.field "can sell?" .boolean) + (.field "require contributor credit?" .boolean) + (.field "allow contributor endorsement?" .boolean)))) (def: extension (Parser Extension) (.object - ($_ <>.and - (.field "same license?" .boolean) - (.field "must be distinguishable?" .boolean) - (.field "notification period" (.nullable ..period)) - (.field "must describe modifications?" .boolean)))) + (all <>.and + (.field "same license?" .boolean) + (.field "must be distinguishable?" .boolean) + (.field "notification period" (.nullable ..period)) + (.field "must describe modifications?" .boolean)))) (def: entity (Parser Entity) @@ -126,9 +126,9 @@ (def: black_list (Parser Black_List) (.object - ($_ <>.and - (.field "justification" (.nullable .string)) - (.field "entities" (.array (<>.many ..entity)))))) + (all <>.and + (.field "justification" (.nullable .string)) + (.field "entities" (.array (<>.many ..entity)))))) (def: url (Parser URL) @@ -137,32 +137,32 @@ (def: attribution (Parser Attribution) (.object - ($_ <>.and - (.field "copyright-notice" .string) - (.field "phrase" (.nullable .string)) - (.field "url" ..url) - (.field "image" (.nullable ..url))))) + (all <>.and + (.field "copyright-notice" .string) + (.field "phrase" (.nullable .string)) + (.field "url" ..url) + (.field "image" (.nullable ..url))))) (def: addendum (Parser Addendum) (.object - ($_ <>.and - (.field "commons clause?" .boolean) - ))) + (all <>.and + (.field "commons clause?" .boolean) + ))) (def: .public license (Parser License) (.object - ($_ <>.and - (.field "copyright-holders" (.array (<>.many ..copyright_holder))) - (.field "identification" (.nullable ..identification)) - (.field "termination" ..termination) - (.field "liability" ..liability) - (.field "distribution" ..distribution) - (.field "commercial" ..commercial) - (.field "extension" ..extension) - (.field "black-lists" (.array (<>.some ..black_list))) - (.field "attribution" (.nullable ..attribution)) - (<>.default [//.#commons_clause? false] - (.field "addendum" ..addendum)) - ))) + (all <>.and + (.field "copyright-holders" (.array (<>.many ..copyright_holder))) + (.field "identification" (.nullable ..identification)) + (.field "termination" ..termination) + (.field "liability" ..liability) + (.field "distribution" ..distribution) + (.field "commercial" ..commercial) + (.field "extension" ..extension) + (.field "black-lists" (.array (<>.some ..black_list))) + (.field "attribution" (.nullable ..attribution)) + (<>.default [//.#commons_clause? false] + (.field "addendum" ..addendum)) + ))) diff --git a/licentia/source/program/licentia/license/distribution.lux b/licentia/source/program/licentia/license/distribution.lux index 849b7294a..87b397ff7 100644 --- a/licentia/source/program/licentia/license/distribution.lux +++ b/licentia/source/program/licentia/license/distribution.lux @@ -104,10 +104,10 @@ (def: .public (extension distribution) (-> Distribution Text) - ($.paragraph ($_ list#composite - (if (the //.#can_re_license? distribution) - (list allow_re_licensing) - (list)) - (if (the //.#can_multi_license? distribution) - (list allow_multi_licensing) - (list))))) + ($.paragraph (all list#composite + (if (the //.#can_re_license? distribution) + (list allow_re_licensing) + (list)) + (if (the //.#can_multi_license? distribution) + (list allow_multi_licensing) + (list))))) -- cgit v1.2.3