|
20 | 20 | import src.api.config |
21 | 21 | import src.api.dataref |
22 | 22 | import src.api.options |
23 | | -import src.api.symboltable |
24 | | - |
25 | | -# Compiler API |
26 | | -import src.api.symboltable.symboltable |
27 | 23 | import src.api.utils |
28 | 24 |
|
29 | | -# Lexers and parsers, etc |
30 | | -import src.ply.yacc as yacc |
31 | | - |
32 | 25 | # Symbol Classes |
33 | 26 | from src import arch |
34 | 27 |
|
|
54 | 47 | from src.api.errmsg import error, warning |
55 | 48 | from src.api.global_ import LoopInfo |
56 | 49 | from src.api.opcodestemps import OpcodesTemps |
| 50 | + |
| 51 | +# Compiler API |
| 52 | +from src.api.symboltable.symboltable import SymbolTable |
| 53 | + |
| 54 | +# Lexers and parsers, etc |
| 55 | +from src.ply import yacc |
57 | 56 | from src.symbols import sym |
58 | 57 | from src.symbols.id_ import SymbolID |
59 | 58 | from src.symbols.symbol_ import Symbol |
|
81 | 80 | # ---------------------------------------------------------------------- |
82 | 81 | # Global Symbol Table |
83 | 82 | # ---------------------------------------------------------------------- |
84 | | -SYMBOL_TABLE = gl.SYMBOL_TABLE = src.api.symboltable.symboltable.SymbolTable() |
| 83 | +SYMBOL_TABLE = gl.SYMBOL_TABLE = SymbolTable() |
85 | 84 |
|
86 | 85 | # ---------------------------------------------------------------------- |
87 | 86 | # Defined user labels. They all are prepended _label_. Line numbers 10, |
|
92 | 91 | # ---------------------------------------------------------------------- |
93 | 92 | # True if we're in the middle of a LET sentence. False otherwise. |
94 | 93 | # ---------------------------------------------------------------------- |
95 | | -LET_ASSIGNMENT = False |
| 94 | +LET_ASSIGNMENT: bool = False |
96 | 95 |
|
97 | 96 | # ---------------------------------------------------------------------- |
98 | 97 | # True if PRINT sentence has been used. |
99 | 98 | # ---------------------------------------------------------------------- |
100 | | -PRINT_IS_USED = False |
| 99 | +PRINT_IS_USED: bool = False |
101 | 100 |
|
102 | 101 | # ---------------------------------------------------------------------- |
103 | 102 | # Last line number output for checking program key board BREAK |
104 | 103 | # ---------------------------------------------------------------------- |
105 | | -last_brk_linenum = 0 |
| 104 | +last_brk_linenum: int = 0 |
106 | 105 |
|
107 | 106 |
|
108 | 107 | # ---------------------------------------------------------------------- |
|
0 commit comments