From c5397b1bdda2a54348a731264a67e37e1f40fa04 Mon Sep 17 00:00:00 2001 From: Eduardo Julian Date: Thu, 26 Oct 2017 19:22:17 -0400 Subject: - "primitive" macro can now handle primitives as text. --- stdlib/source/lux.lux | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'stdlib/source') diff --git a/stdlib/source/lux.lux b/stdlib/source/lux.lux index 384fb67b6..9509c7ad5 100644 --- a/stdlib/source/lux.lux +++ b/stdlib/source/lux.lux @@ -1957,6 +1957,12 @@ (#Cons [_ (#Symbol "" class-name)] (#Cons [_ (#Tuple params)] #Nil)) (return (list (form$ (list (tag$ ["lux" "Primitive"]) (text$ class-name) (untemplate-list params))))) + (#Cons [_ (#Text class-name)] #Nil) + (return (list (form$ (list (tag$ ["lux" "Primitive"]) (text$ class-name) (tag$ ["lux" "Nil"]))))) + + (#Cons [_ (#Text class-name)] (#Cons [_ (#Tuple params)] #Nil)) + (return (list (form$ (list (tag$ ["lux" "Primitive"]) (text$ class-name) (untemplate-list params))))) + _ (fail "Wrong syntax for primitive"))) -- cgit v1.2.3