Module: Idl::Executable
- Included in:
- AryElementAssignmentAst, AryRangeAssignmentAst, CsrFieldAssignmentAst, CsrSoftwareWriteAst, CsrWriteAst, FieldAssignmentAst, ForLoopAst, FunctionBodyAst, FunctionCallExpressionAst, GlobalWithInitializationAst, IfAst, IfBodyAst, MultiVariableAssignmentAst, PcAssignmentAst, PostDecrementExpressionAst, PostIncrementExpressionAst, StatementAst, VariableAssignmentAst, VariableDeclarationWithInitializationAst
- Defined in:
- lib/idl/ast.rb
Overview
interface for nodes that can be executed, but don’t have a value (e.g., statements)
Instance Method Summary collapse
-
#execute(symtab) ⇒ void
“execute” the statement by updating the variables in the symbol table.
-
#execute_unknown(symtab) ⇒ void
“execute” the statement, forcing any variable assignments to an unknown state This is used down unknown conditional paths.
Instance Method Details
#execute(symtab) ⇒ void
This method returns an undefined value.
“execute” the statement by updating the variables in the symbol table
424 |
# File 'lib/idl/ast.rb', line 424 def execute(symtab) = raise NotImplementedError, "#{self.class.name} must implement execute" |
#execute_unknown(symtab) ⇒ void
This method returns an undefined value.
“execute” the statement, forcing any variable assignments to an unknown state This is used down unknown conditional paths.
427 |
# File 'lib/idl/ast.rb', line 427 def execute_unknown(symtab) = raise NotImplementedError, "#{self.class.name} must implement execute_unknown" |