aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl/vhdl-prints.ads
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2022-11-20 20:02:41 +0100
committerTristan Gingold <tgingold@free.fr>2022-11-20 20:02:41 +0100
commitc1dc505cbe93ebaade1547b2e4180074bdf42a25 (patch)
treecf62b1a2f808169d33015da44ae669fdc40c43a2 /src/vhdl/vhdl-prints.ads
parent1ea6e91b7ef11e8d7fa4679bd9cb13e91db53684 (diff)
downloadghdl-c1dc505cbe93ebaade1547b2e4180074bdf42a25.tar.gz
ghdl-c1dc505cbe93ebaade1547b2e4180074bdf42a25.tar.bz2
ghdl-c1dc505cbe93ebaade1547b2e4180074bdf42a25.zip
vhdl-prints: add an option to display comments
Diffstat (limited to 'src/vhdl/vhdl-prints.ads')
-rw-r--r--src/vhdl/vhdl-prints.ads14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/vhdl/vhdl-prints.ads b/src/vhdl/vhdl-prints.ads
index 44989d401..c059ab695 100644
--- a/src/vhdl/vhdl-prints.ads
+++ b/src/vhdl/vhdl-prints.ads
@@ -37,6 +37,12 @@ package Vhdl.Prints is
procedure Close_Hbox (Ctxt : in out Disp_Ctxt) is abstract;
procedure Start_Vbox (Ctxt : in out Disp_Ctxt) is abstract;
procedure Close_Vbox (Ctxt : in out Disp_Ctxt) is abstract;
+
+ -- Called before some nodes to display comments. The nodes are:
+ -- Iir_Kind_Design_Unit
+ -- Iir_Kinds_Interface_Declaration
+ procedure Start_Node (Ctxt : in out Disp_Ctxt; N : Iir) is null;
+
procedure Valign (Ctxt : in out Disp_Ctxt; Point : Valign_Type)
is abstract;
procedure Disp_Token (Ctxt : in out Disp_Ctxt; Tok : Token_Type)
@@ -60,12 +66,16 @@ package Vhdl.Prints is
-- Mainly used to dispatch to other functions according to the kind of
-- the node.
procedure Disp_Vhdl (Ctxt : in out Ctxt_Class; N : Iir);
- procedure Disp_Vhdl (N : Iir);
procedure Disp_PSL_NFA (Ctxt : in out Ctxt_Class; N : PSL_NFA);
+
+ -- Standalone version of above method, create a default context.
+ -- Used for debugging.
+ procedure Disp_Vhdl (N : Iir);
procedure Disp_PSL_NFA (N : PSL_NFA);
+ -- Display an expression.
+ -- Used for debugging.
procedure Disp_Expression (Expr: Iir);
procedure Disp_PSL_Expr (N : PSL_Node);
- -- Display an expression.
end Vhdl.Prints;