From e88635d6d32055cc7d3a4ccf16c1a74cb5b88d1c Mon Sep 17 00:00:00 2001 From: Shagun Agrawal Date: Thu, 22 Aug 2024 00:51:56 +0530 Subject: Add analyzer for validating program semantics Add validator for semantic analysis Pass ch5 test cases for validate flag --- 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 2c9643e..f63ebed 100644 --- a/src/cljcc/cljcc.clj +++ b/src/cljcc/cljcc.clj @@ -19,8 +19,9 @@ (def cli-options [[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 "--validate" "Runs semantic analyzer. Does not emit any files."] [nil "--tacky" "Runs tacky generation. Does not emit any files."] + [nil "--codegen" "Runs compiler. Does not emit any files."] ["-h" "--help"]]) (defn validate-args [args] -- cgit v1.2.3