diff options
| author | Martial Simon <msimon_fr@hotmail.com> | 2025-09-15 01:07:58 +0200 |
|---|---|---|
| committer | Martial Simon <msimon_fr@hotmail.com> | 2025-09-15 01:07:58 +0200 |
| commit | 967be9e750221ab2ab783f95df79bb26d290a45e (patch) | |
| tree | 6802900a5e975f9f68b169f0f503f040056d6952 /tiger-compiler/src/assert/type-checker.hh | |
Diffstat (limited to 'tiger-compiler/src/assert/type-checker.hh')
| -rw-r--r-- | tiger-compiler/src/assert/type-checker.hh | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/tiger-compiler/src/assert/type-checker.hh b/tiger-compiler/src/assert/type-checker.hh new file mode 100644 index 0000000..e15e393 --- /dev/null +++ b/tiger-compiler/src/assert/type-checker.hh @@ -0,0 +1,30 @@ +/** + ** \file assert/type-checker.hh + ** \brief Declaration of assert::TypeChecker. + */ + +#pragma once + +#include <ast/assert-visitor.hh> +#include <type/type-checker.hh> + +namespace assert { + + class TypeChecker + : public type::TypeChecker + , public ast::AssertVisitor + { + public: + using super_type = type::TypeChecker; + using super_type::operator(); + + // Build a TypeChecker + TypeChecker(); + + // Type an AssertExp node. All AssertExp must follow the typing table : + // cond_ : int | assert cond_ : void + // \param e Node to visit + void operator()(ast::AssertExp& e) override; + }; + +} // assert |
