aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/lux/macro/syntax/common/reader.lux
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/source/lux/macro/syntax/common/reader.lux')
-rw-r--r--stdlib/source/lux/macro/syntax/common/reader.lux36
1 files changed, 18 insertions, 18 deletions
diff --git a/stdlib/source/lux/macro/syntax/common/reader.lux b/stdlib/source/lux/macro/syntax/common/reader.lux
index 689e166d0..98e1165a5 100644
--- a/stdlib/source/lux/macro/syntax/common/reader.lux
+++ b/stdlib/source/lux/macro/syntax/common/reader.lux
@@ -20,25 +20,25 @@
quux
(foo bar baz))}
(Parser //.Declaration)
- (p.either (p.and s.local-identifier
+ (p.either (p.and s.local_identifier
(p\wrap (list)))
- (s.form (p.and s.local-identifier
- (p.some s.local-identifier)))))
+ (s.form (p.and s.local_identifier
+ (p.some s.local_identifier)))))
(def: #export annotations
{#.doc "Reader for the common annotations syntax used by def: statements."}
(Parser //.Annotations)
(s.record (p.some (p.and s.tag s.any))))
-(def: (flat-list^ _)
+(def: (flat_list^ _)
(-> Any (Parser (List Code)))
(p.either (do p.monad
- [_ (s.tag! (name-of #.Nil))]
+ [_ (s.tag! (name_of #.Nil))]
(wrap (list)))
(s.form (do p.monad
- [_ (s.tag! (name-of #.Cons))
+ [_ (s.tag! (name_of #.Cons))
[head tail] (s.tuple (p.and s.any s.any))
- tail (s.local (list tail) (flat-list^ []))]
+ tail (s.local (list tail) (flat_list^ []))]
(wrap (#.Cons head tail))))))
(template [<name> <type> <tag> <then>]
@@ -48,34 +48,34 @@
(p.after s.any)
s.form
(do p.monad
- [_ (s.tag! (name-of <tag>))]
+ [_ (s.tag! (name_of <tag>))]
<then>)))]
- [tuple-meta^ (List Code) #.Tuple (flat-list^ [])]
- [text-meta^ Text #.Text s.text]
+ [tuple_meta^ (List Code) #.Tuple (flat_list^ [])]
+ [text_meta^ Text #.Text s.text]
)
-(def: (find-definition-args meta-data)
+(def: (find_definition_args meta_data)
(-> (List [Name Code]) (List Text))
(<| (maybe.default (list))
(: (Maybe (List Text)))
- (case (list.find (|>> product.left (name\= ["lux" "func-args"])) meta-data)
+ (case (list.find (|>> product.left (name\= ["lux" "func-args"])) meta_data)
(^multi (#.Some [_ value])
- [(p.run tuple-meta^ (list value))
+ [(p.run tuple_meta^ (list value))
(#.Right [_ args])]
- [(p.run (p.some text-meta^) args)
+ [(p.run (p.some text_meta^) args)
(#.Right [_ args])])
(#.Some args)
_
#.None)))
-(def: #export typed-input
+(def: #export typed_input
{#.doc "Reader for the common typed-argument syntax used by many macros."}
- (Parser //.Typed-Input)
+ (Parser //.Typed_Input)
(s.record (p.and s.any s.any)))
-(def: #export type-variables
+(def: #export type_variables
{#.doc "Reader for the common type var/param used by many macros."}
(Parser (List Text))
- (p.some s.local-identifier))
+ (p.some s.local_identifier))