blob: aed21adb5cebeba1655e1ca774843e7b391889fa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
package no.eliashaugsbakk.kompilator.parsing.node.statement;
import no.eliashaugsbakk.kompilator.parsing.node.ASTNode;
/**
* Base class for all statement nodes.
* A statement is a top-level line of code that performs an action.
* No return value.
* <p>
* Examples:
* - print("Hello"); (function call statement)
* x my_value = my_func("Hello"); (not a statement - it has a return value)
* - var x: int = 5; (variable declaration statement)
* - if (x > 0) { } (conditional statement)
*/
public abstract class Statement extends ASTNode {
}
|