Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 53ee2a9

Browse files
committed
Define constants for types of scopes
1 parent 0056a42 commit 53ee2a9

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

Lib/compiler/consts.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,8 @@
77
OP_DELETE = 'OP_DELETE'
88
OP_APPLY = 'OP_APPLY'
99

10+
SC_LOCAL = 1
11+
SC_GLOBAL = 2
12+
SC_FREE = 3
13+
SC_CELL = 4
14+
SC_UNKNOWN = 5

Tools/compiler/compiler/consts.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,8 @@
77
OP_DELETE = 'OP_DELETE'
88
OP_APPLY = 'OP_APPLY'
99

10+
SC_LOCAL = 1
11+
SC_GLOBAL = 2
12+
SC_FREE = 3
13+
SC_CELL = 4
14+
SC_UNKNOWN = 5

0 commit comments

Comments
 (0)