From a2faef20e0646a74dca82a0508a9892a8acc32f0 Mon Sep 17 00:00:00 2001 From: Eduardo Julian Date: Sun, 14 Dec 2014 16:27:49 -0400 Subject: Added Java class imports. --- src/lang/parser.clj | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/lang/parser.clj') 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])) -- cgit v1.2.3