From ca4892ea62cfaca99f9174f58500457ea4a87354 Mon Sep 17 00:00:00 2001 From: Shagun Agrawal Date: Sun, 11 Aug 2024 22:16:47 +0530 Subject: Add lexer Add custom lexer Pass chapter 1 lex stages --- src/cljcc/cljcc.clj | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/cljcc/cljcc.clj') diff --git a/src/cljcc/cljcc.clj b/src/cljcc/cljcc.clj index 0ebe609..b76fcd5 100644 --- a/src/cljcc/cljcc.clj +++ b/src/cljcc/cljcc.clj @@ -17,7 +17,8 @@ (string/join \newline))) (def cli-options - [[nil "--parse" "Runs parser. Does not emit any files."] + [[nil "--lex" "Runs lexer. Does not emit any files."] + [nil "--parse" "Runs parser. Does not emit any files."] [nil "--codegen" "Runs compiler. Does not emit any files."] [nil "--tacky" "Runs tacky generation. Does not emit any files."] ["-h" "--help"]]) -- cgit v1.2.3