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/parse/fwd.hh | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 tiger-compiler/src/parse/fwd.hh (limited to 'tiger-compiler/src/parse/fwd.hh') diff --git a/tiger-compiler/src/parse/fwd.hh b/tiger-compiler/src/parse/fwd.hh new file mode 100644 index 0000000..19ed898 --- /dev/null +++ b/tiger-compiler/src/parse/fwd.hh @@ -0,0 +1,38 @@ +/** + ** \file parse/fwd.hh + ** \brief Forward declarations for the parse module. + */ + +#pragma once + +#include + +// From ast/. +namespace ast +{ + class Exp; + class ChunkList; + +} // namespace ast + +namespace parse +{ + // From scantiger.hh. + class Lexer; + + // From parsetiger.yy. + class parser; + + // From location.hh. + class location; + + // From tiger-driver.hh. + class TigerDriver; + + // From tweast.hh + class Tweast; + + /// Result of a parse: an Exp (*.tig) or a ChunkList (*.tih). + using ast_type = misc::variant; + +} // namespace parse -- cgit v1.2.3