summaryrefslogtreecommitdiff
path: root/tiger-compiler/src/parse/fwd.hh
diff options
context:
space:
mode:
authorMartial Simon <msimon_fr@hotmail.com>2025-09-15 01:07:58 +0200
committerMartial Simon <msimon_fr@hotmail.com>2025-09-15 01:07:58 +0200
commit967be9e750221ab2ab783f95df79bb26d290a45e (patch)
tree6802900a5e975f9f68b169f0f503f040056d6952 /tiger-compiler/src/parse/fwd.hh
add: added projectsHEADmain
Diffstat (limited to 'tiger-compiler/src/parse/fwd.hh')
-rw-r--r--tiger-compiler/src/parse/fwd.hh38
1 files changed, 38 insertions, 0 deletions
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 <misc/variant.hh>
+
+// 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<ast::Exp*, ast::ChunkList*>;
+
+} // namespace parse