summaryrefslogtreecommitdiff
path: root/src/ast/nodes/Node.java
diff options
context:
space:
mode:
authorEmanuele Grasso <96300448+L0P0P@users.noreply.github.com>2024-07-14 18:48:09 +0200
committerGitHub <noreply@github.com>2024-07-14 18:48:09 +0200
commitce49d20a5fe3726e1800bc495a25c7617212abf4 (patch)
tree5a1a79efa79e7bf6dcf3d3151aec2edf6a47b3e7 /src/ast/nodes/Node.java
parent57599a42b863cc48050c137de2ec108aa1d59a44 (diff)
Reaching definition analysis (#17)
Co-authored-by: Santo Cariotti <santo@dcariotti.me> Co-authored-by: geno <gabriele.genovese2@studio.unibo.it> Co-authored-by: geno <gabrigeno@gmail.com>
Diffstat (limited to 'src/ast/nodes/Node.java')
-rw-r--r--src/ast/nodes/Node.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ast/nodes/Node.java b/src/ast/nodes/Node.java
index 0e58093..5bf5a33 100644
--- a/src/ast/nodes/Node.java
+++ b/src/ast/nodes/Node.java
@@ -105,5 +105,11 @@ public interface Node {
* Returns a string for a given node with a prefix. It used when an AST
* wants to be visualized on screen.
*/
+ String printAST(String prefix);
+
+ /**
+ * Returns a string for a given node with a prefix. It used when the code
+ * wants to be visualized on screen.
+ */
String toPrint(String prefix);
}