From b55cefcb258f11eeee32c1478faefd1bd09ec871 Mon Sep 17 00:00:00 2001 From: Eduardo Julian Date: Mon, 6 Sep 2021 16:28:43 -0400 Subject: New chapter on compiler extensions. --- stdlib/source/library/lux/target/js.lux | 2 +- stdlib/source/library/lux/target/lua.lux | 2 +- stdlib/source/library/lux/target/python.lux | 4 ++-- stdlib/source/library/lux/target/ruby.lux | 2 +- stdlib/source/library/lux/tool/compiler/language/lux/generation.lux | 4 +++- stdlib/source/library/lux/tool/compiler/language/lux/synthesis.lux | 4 +++- 6 files changed, 11 insertions(+), 7 deletions(-) (limited to 'stdlib/source/library') diff --git a/stdlib/source/library/lux/target/js.lux b/stdlib/source/library/lux/target/js.lux index fc1257fdc..2882fe5db 100644 --- a/stdlib/source/library/lux/target/js.lux +++ b/stdlib/source/library/lux/target/js.lux @@ -50,7 +50,7 @@ (template [ +] [(with_expansions [ (template.identifier [ "'"])] - (abstract: .public {} Any) + (abstract: {} Any) (`` (type: .public (|> (~~ (template.spliced +))))))] [Var [Location' Computation' Expression' Code]] diff --git a/stdlib/source/library/lux/target/lua.lux b/stdlib/source/library/lux/target/lua.lux index 540b8e7a0..d0c43b23d 100644 --- a/stdlib/source/library/lux/target/lua.lux +++ b/stdlib/source/library/lux/target/lua.lux @@ -73,7 +73,7 @@ (template [ +] [(with_expansions [ (template.identifier [ "'"])] - (abstract: .public {} Any) + (abstract: {} Any) (`` (type: .public (|> (~~ (template.spliced +))))))] [Literal [Computation' Expression' Code]] diff --git a/stdlib/source/library/lux/target/python.lux b/stdlib/source/library/lux/target/python.lux index 21aa9291f..db46ffe6b 100644 --- a/stdlib/source/library/lux/target/python.lux +++ b/stdlib/source/library/lux/target/python.lux @@ -74,7 +74,7 @@ (template [ ] [(with_expansions [ (template.identifier [ "'"])] - (`` (abstract: .public ( brand) {} Any)) + (`` (abstract: ( brand) {} Any)) (`` (type: .public ( brand) ( ( brand)))))] @@ -87,7 +87,7 @@ (template [ ] [(with_expansions [ (template.identifier [ "'"])] - (`` (abstract: .public {} Any)) + (`` (abstract: {} Any)) (`` (type: .public ( ))))] [Literal Computation] diff --git a/stdlib/source/library/lux/target/ruby.lux b/stdlib/source/library/lux/target/ruby.lux index 22ca238d8..57aa8e41a 100644 --- a/stdlib/source/library/lux/target/ruby.lux +++ b/stdlib/source/library/lux/target/ruby.lux @@ -75,7 +75,7 @@ (template [ +] [(with_expansions [ (template.identifier [ "'"])] - (abstract: .public {} Any) + (abstract: {} Any) (`` (type: .public (|> (~~ (template.spliced +))))))] [Literal [Computation' Expression' Code]] diff --git a/stdlib/source/library/lux/tool/compiler/language/lux/generation.lux b/stdlib/source/library/lux/tool/compiler/language/lux/generation.lux index 3646a0e9f..f5eb64da7 100644 --- a/stdlib/source/library/lux/tool/compiler/language/lux/generation.lux +++ b/stdlib/source/library/lux/tool/compiler/language/lux/generation.lux @@ -102,7 +102,9 @@ #context #.None #log row.empty]) -(def: .public empty_buffer Buffer row.empty) +(def: .public empty_buffer + Buffer + row.empty) (template [ diff --git a/stdlib/source/library/lux/tool/compiler/language/lux/synthesis.lux b/stdlib/source/library/lux/tool/compiler/language/lux/synthesis.lux index df124fba8..3d1067415 100644 --- a/stdlib/source/library/lux/tool/compiler/language/lux/synthesis.lux +++ b/stdlib/source/library/lux/tool/compiler/language/lux/synthesis.lux @@ -198,7 +198,9 @@ (type: .public Apply (Apply' Synthesis)) -(def: .public unit Text "") +(def: .public unit + Text + "") (template [ ] [(def: .public ( value) -- cgit v1.2.3