From c68be3366cb67ff96ec88904ccc9d1efd7a78bed Mon Sep 17 00:00:00 2001 From: Eduardo Julian Date: Mon, 8 Dec 2014 20:36:41 -0400 Subject: Added modules. --- src/lang.clj | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) (limited to 'src/lang.clj') diff --git a/src/lang.clj b/src/lang.clj index 77235dcf0..6502c3a29 100644 --- a/src/lang.clj +++ b/src/lang.clj @@ -14,12 +14,28 @@ _ (prn 'tokens tokens) syntax (&parser/parse tokens) _ (prn 'syntax syntax) - class-data (&compiler/compile syntax)] - (write-file "output.class" class-data)) + class-data (&compiler/compile "test2" syntax)] + (write-file "test2.class" class-data)) (->> (slurp "test2.lang") &lexer/lex &parser/parse - &compiler/compile - (write-file "output.class")) + (&compiler/compile "test2") + (write-file "test2.class")) + + ;; TODO: Define the Function abstract class. + ;; TODO: Define functions as classes inheriting Function. + ;; TODO: Add tuples. + ;; TODO: Add let. + ;; TODO: Add pattern-matching. + ;; TODO: Add tagged values. + ;; TODO: Do tail-call optimization. + ;; TODO: Add macros. + ;; TODO: Add type-level computations. + ;; TODO: Add interpreter. + ;; TODO: Add Java-interop. + ;; TODO: Add signatures & structures. + ;; TODO: Add type-system. + ;; TODO: Allow defining constants. + ;; TODO: ) -- cgit v1.2.3