aboutsummaryrefslogtreecommitdiff
path: root/src/lang/parser.clj
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lang/parser.clj8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lang/parser.clj b/src/lang/parser.clj
index fd50a04fb..f756a8b14 100644
--- a/src/lang/parser.clj
+++ b/src/lang/parser.clj
@@ -98,9 +98,9 @@
=body (apply-m parse-form (list ?body))]
(return [::let ?label =value =body])))
-(defparser ^:private parse-module
- [::&lexer/list ([[::&lexer/ident "module"]] :seq)]
- (return [::module]))
+(defparser ^:private parse-import
+ [::&lexer/list ([[::&lexer/ident "import"] [::&lexer/ident ?class]] :seq)]
+ (return [::import ?class]))
(defparser ^:private parse-defclass
[::&lexer/list ([[::&lexer/ident "defclass"] [::&lexer/ident ?name] [::&lexer/tuple ?fields]] :seq)]
@@ -200,7 +200,7 @@
parse-static-access
parse-dynamic-access
parse-ann-class
- parse-module
+ parse-import
parse-defclass
parse-definterface
parse-fn-call]))