From b197ea75a0b71adaa09c3f6c95c93a2393512066 Mon Sep 17 00:00:00 2001 From: Siraaj Khandkar Date: Thu, 13 Sep 2018 09:25:48 -0400 Subject: [PATCH] Add stub for Semant module --- compiler/src/exe/tigerc.ml | 1 + compiler/src/lib/tiger/tiger.ml | 1 + compiler/src/lib/tiger/tiger_semant.ml | 2 ++ compiler/src/lib/tiger/tiger_semant.mli | 1 + 4 files changed, 5 insertions(+) create mode 100644 compiler/src/lib/tiger/tiger_semant.ml create mode 100644 compiler/src/lib/tiger/tiger_semant.mli diff --git a/compiler/src/exe/tigerc.ml b/compiler/src/exe/tigerc.ml index 4bf0c62..c6be0d8 100644 --- a/compiler/src/exe/tigerc.ml +++ b/compiler/src/exe/tigerc.ml @@ -13,6 +13,7 @@ let () = Printf.eprintf "%s\n" (Tiger.Error.to_string error); exit 1; | absyn -> + Tiger.Semant.transProg absyn; print_endline (Tiger.Absyn.to_string absyn) ); close_in ic; diff --git a/compiler/src/lib/tiger/tiger.ml b/compiler/src/lib/tiger/tiger.ml index ecdb611..e3f407b 100644 --- a/compiler/src/lib/tiger/tiger.ml +++ b/compiler/src/lib/tiger/tiger.ml @@ -3,5 +3,6 @@ module Error = Tiger_error module Lexer = Tiger_lexer module Parser = Tiger_parser module Parser_token = Tiger_parser_token +module Semant = Tiger_semant module Test = Tiger_test module Test_cases = Tiger_test_cases diff --git a/compiler/src/lib/tiger/tiger_semant.ml b/compiler/src/lib/tiger/tiger_semant.ml new file mode 100644 index 0000000..7dffbad --- /dev/null +++ b/compiler/src/lib/tiger/tiger_semant.ml @@ -0,0 +1,2 @@ +let transProg _ = + failwith "Not implemented: Tiger_semant.transProg" diff --git a/compiler/src/lib/tiger/tiger_semant.mli b/compiler/src/lib/tiger/tiger_semant.mli new file mode 100644 index 0000000..58af43c --- /dev/null +++ b/compiler/src/lib/tiger/tiger_semant.mli @@ -0,0 +1 @@ +val transProg : Tiger_absyn.t -> unit -- 2.20.1