Gyoji Compiler
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
Gyoji::frontend::lowering::ScopeOperation Class Reference

Primitive operation in a scope. More...

#include <function-scope.hpp>

Public Types

enum  ScopeOperationType { VAR_DECL , LABEL_DEFINITION , GOTO_DEFINITION , CHILD_SCOPE }
 

Public Member Functions

 ~ScopeOperation ()
 Move along, nothing to see here.
 

Detailed Description

Primitive operation in a scope.

The only types of operations in this scope tracker are variable declarations, label definitions, goto statements, and sub-scopes. This is a HIGHLY abstract representation specifically for the purpose of reasoning about the sequence of operations in a 'goto' scenario. Other types of operations inside scopes are deliberately omitted because they are irrelevant to the problem this is trying to solve.

Member Enumeration Documentation

◆ ScopeOperationType

Enumerator
VAR_DECL 

Represents declaration of a variable inside a scope.

LABEL_DEFINITION 

Represents a label declared in the scope.

GOTO_DEFINITION 

Represents a goto statement inside the scope.

CHILD_SCOPE 

Represents a child of this scope, which is itself another scope.

Constructor & Destructor Documentation

◆ ~ScopeOperation()

ScopeOperation::~ScopeOperation ( )

Move along, nothing to see here.

Move along, nothing to see here.


The documentation for this class was generated from the following files: