From 967be9e750221ab2ab783f95df79bb26d290a45e Mon Sep 17 00:00:00 2001 From: Martial Simon Date: Mon, 15 Sep 2025 01:07:58 +0200 Subject: add: added projects --- tiger-compiler/src/ast/tasks.hh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 tiger-compiler/src/ast/tasks.hh (limited to 'tiger-compiler/src/ast/tasks.hh') diff --git a/tiger-compiler/src/ast/tasks.hh b/tiger-compiler/src/ast/tasks.hh new file mode 100644 index 0000000..490fc90 --- /dev/null +++ b/tiger-compiler/src/ast/tasks.hh @@ -0,0 +1,24 @@ +/** + ** \file ast/tasks.hh + ** \brief Ast module related tasks. + */ + +#pragma once + +#include +#include + +namespace ast::tasks +{ + /// Global root node of abstract syntax tree. + extern std::unique_ptr the_program; + + TASK_GROUP("2. Abstract Syntax Tree"); + + /// Display the abstract syntax tree. + TASK_DECLARE("A|ast-display", "display the AST", ast_display, "parse"); + + /// Display the abstract syntax tree using a dumper. + TASK_DECLARE("ast-dump", "dump the AST", ast_dump, "parse"); + +} // namespace ast::tasks -- cgit v1.2.3