File tree Expand file tree Collapse file tree 25 files changed +4
-29
lines changed
part 10 - complete program/lesson
part 11 - symbol tables/lesson
part 12 - procedures/lesson
part 13 - semantic analysis/lesson
part 16 - recognizing procedure calls
part 17 - call stack and activation records/lesson
part 18 - executing procedure calls/lesson
part 5 - operators precedence/lesson
part 8 - unary operators/lesson Expand file tree Collapse file tree 25 files changed +4
-29
lines changed Original file line number Diff line number Diff line change 1515 - id : requirements-txt-fixer
1616
1717 - repo : https://github.com/codespell-project/codespell
18- rev : v2.2.2
18+ rev : v2.2.5
1919 hooks :
2020 - id : codespell
2121 exclude : main.spec
3232 name : isort (python)
3333
3434 - repo : https://github.com/PyCQA/autoflake
35- rev : v2.0 .0
35+ rev : v2.2 .0
3636 hooks :
3737 - id : autoflake
3838 name : autoflake
@@ -48,14 +48,14 @@ repos:
4848 ]
4949
5050 - repo : https://github.com/asottile/add-trailing-comma
51- rev : v2.4.0
51+ rev : v2.5.1
5252 hooks :
5353 - id : add-trailing-comma
5454 args :
5555 - --py36-plus
5656
5757 - repo : https://github.com/psf/black
58- rev : 22.12 .0
58+ rev : 23.3 .0
5959 hooks :
6060 - id : black
6161 args : [
Original file line number Diff line number Diff line change @@ -199,7 +199,6 @@ def statement(self):
199199 node = self .compound_statement ()
200200
201201 elif self .current_token .type == TokenType .ID or Token .RESERVED_PROCEDURES .get (self .current_token .value ):
202-
203202 if self .lexer .current_char == '(' :
204203 node = self .proccall_statement ()
205204
Original file line number Diff line number Diff line change @@ -72,7 +72,6 @@ def update_scope_table(self):
7272
7373 @pyqtSlot ()
7474 def interpret (self ):
75-
7675 program = self .ui .plainTextEdit .toPlainText ()
7776 self .ui .output .setText ('' )
7877 self .ui .output .setStyleSheet ('color: black;' )
@@ -102,7 +101,6 @@ def interpret(self):
102101 self .ui .output .append (out )
103102
104103 except Exception as e :
105-
106104 self .ui .output .setText (str (e ))
107105 self .ui .output .setStyleSheet ('color: red;' )
108106
Original file line number Diff line number Diff line change @@ -73,7 +73,6 @@ def get_next_token(self):
7373 apart into tokens. One token at a time.
7474 """
7575 while self .current_char is not None :
76-
7776 if self .current_char .isspace ():
7877 self .skip_whitespace ()
7978 continue
Original file line number Diff line number Diff line change @@ -71,7 +71,6 @@ def get_next_token(self):
7171 apart into tokens. One token at a time.
7272 """
7373 while self .current_char is not None :
74-
7574 if self .current_char .isspace ():
7675 self .skip_whitespace ()
7776 continue
Original file line number Diff line number Diff line change @@ -71,7 +71,6 @@ def get_next_token(self):
7171 apart into tokens. One token at a time.
7272 """
7373 while self .current_char is not None :
74-
7574 if self .current_char .isspace ():
7675 self .skip_whitespace ()
7776 continue
Original file line number Diff line number Diff line change @@ -71,7 +71,6 @@ def get_next_token(self):
7171 apart into tokens. One token at a time.
7272 """
7373 while self .current_char is not None :
74-
7574 if self .current_char .isspace ():
7675 self .skip_whitespace ()
7776 continue
Original file line number Diff line number Diff line change @@ -71,7 +71,6 @@ def get_next_token(self):
7171 apart into tokens. One token at a time.
7272 """
7373 while self .current_char is not None :
74-
7574 if self .current_char .isspace ():
7675 self .skip_whitespace ()
7776 continue
Original file line number Diff line number Diff line change @@ -71,7 +71,6 @@ def get_next_token(self):
7171 apart into tokens. One token at a time.
7272 """
7373 while self .current_char is not None :
74-
7574 if self .current_char .isspace ():
7675 self .skip_whitespace ()
7776 continue
Original file line number Diff line number Diff line change @@ -199,7 +199,6 @@ def statement(self):
199199 node = self .compound_statement ()
200200
201201 elif self .current_token .type == TokenType .ID :
202-
203202 if self .lexer .current_char == '(' :
204203 node = self .proccall_statement ()
205204
You can’t perform that action at this time.
0 commit comments