Package iota
Class IBlock
java.lang.Object
iota.IAST
iota.IStatement
iota.IBlock
The AST node for a block, which delimits a nested level of scope.
-
Field Summary
Fields inherited from class iota.IAST
compilationUnit, line
-
Constructor Summary
ConstructorsConstructorDescriptionIBlock
(int line, ArrayList<IStatement> statements) Constructs an AST node for a block. -
Method Summary
Modifier and TypeMethodDescriptionPerforms second phase of semantic analysis on this AST and returns the (possibly modified) AST.void
Performs code generation for this AST.void
toJSON
(JSONElement json) Stores information about this AST in JSON format.Methods inherited from class iota.IAST
line, preAnalyze
-
Constructor Details
-
IBlock
Constructs an AST node for a block.- Parameters:
line
- line in which the block occurs in the source file.statements
- list of statements forming the block body.
-
-
Method Details
-
analyze
Performs second phase of semantic analysis on this AST and returns the (possibly modified) AST. -
codegen
Performs code generation for this AST. -
toJSON
Stores information about this AST in JSON format.
-