From f6cb4f22329a4c60821fbd03749667adc703b19b Mon Sep 17 00:00:00 2001 From: Eduardo Julian Date: Fri, 24 Mar 2017 17:09:57 -0400 Subject: - Renamed "end" to "end!". --- stdlib/source/lux/macro/syntax.lux | 4 ++-- stdlib/source/lux/math/simple.lux | 10 +++++----- stdlib/source/lux/type/auto.lux | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) (limited to 'stdlib/source') diff --git a/stdlib/source/lux/macro/syntax.lux b/stdlib/source/lux/macro/syntax.lux index d77fba6b1..4b8339b8e 100644 --- a/stdlib/source/lux/macro/syntax.lux +++ b/stdlib/source/lux/macro/syntax.lux @@ -274,7 +274,7 @@ output output ))) -(def: #export end +(def: #export end! {#;doc "Ensures there are no more inputs."} (Syntax Unit) (lambda [tokens] @@ -488,7 +488,7 @@ (: (Syntax (Lux (List AST))) (do Monad [(~@ (join-pairs vars+parsers)) - (~ g!end) end] + (~ g!end) end!] ((~' wrap) (do Monad [] (~ body)))))) diff --git a/stdlib/source/lux/math/simple.lux b/stdlib/source/lux/math/simple.lux index f1ef2359b..aaffaa967 100644 --- a/stdlib/source/lux/math/simple.lux +++ b/stdlib/source/lux/math/simple.lux @@ -45,7 +45,7 @@ [(syntax: #export ( [args ($_ s;alt (s;seq (s;alt s;symbol s;any) (s;some s;any)) - s;end)]) + s;end!)]) ## {#;doc (doc (= ( +1 +2) ## ( +1 +2)) ## (= ( 1 2) @@ -109,7 +109,7 @@ [(syntax: #export ( [args ($_ s;alt (s;seq (s;alt s;symbol s;any) (s;some s;any)) - s;end)]) + s;end!)]) ## {#;doc (doc (= ( +1 +2) ## ( +1 +2)) ## (= ( 1 2) @@ -173,7 +173,7 @@ [(syntax: #export ( [args ($_ s;alt (s;seq (s;alt s;symbol s;any) (s;some s;any)) - s;end)]) + s;end!)]) ## {#;doc (doc (= ( +1 +2) ## ( +1 +2)) ## (= ( 1 2) @@ -218,7 +218,7 @@ [(syntax: #export ( [args ($_ s;alt s;symbol s;any - s;end)]) + s;end!)]) ## {#;doc (doc (= ( +1 +2) ## ( +1 +2)) ## (= ( 1 2) @@ -263,7 +263,7 @@ [(syntax: #export ( [args ($_ s;alt s;symbol s;any - s;end)]) + s;end!)]) ## {#;doc (doc (= ( +1 +2) ## ( +1 +2)) ## (= ( 1 2) diff --git a/stdlib/source/lux/type/auto.lux b/stdlib/source/lux/type/auto.lux index edf1153b7..fa658ffb8 100644 --- a/stdlib/source/lux/type/auto.lux +++ b/stdlib/source/lux/type/auto.lux @@ -318,8 +318,8 @@ (` ((~ (ast;symbol constructor)) (~@ (List/map instance$ dependencies)))))) (syntax: #export (::: [member s;symbol] - [args (s;alt (s;seq (s;some s;symbol) s;end) - (s;seq (s;some s;any) s;end))]) + [args (s;alt (s;seq (s;some s;symbol) s;end!) + (s;seq (s;some s;any) s;end!))]) {#;doc (doc "Automatic structure selection (for type-class style polymorphism)." "This feature layers type-class style polymorphism on top of Lux's signatures and structures." "When calling a polymorphic function, or using a polymorphic constant," -- cgit v1.2.3