Skip to content

Commit 30f2d28

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent d125a71 commit 30f2d28

File tree

24 files changed

+0
-25
lines changed

24 files changed

+0
-25
lines changed

base/Parser.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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

main.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff 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

part 10 - complete program/lesson/Lexer.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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

part 11 - symbol tables/lesson/Lexer.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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

part 12 - procedures/lesson/Lexer.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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

part 13 - semantic analysis/lesson/Lexer.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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

part 14 - nested scopes/lesson/Lexer.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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

part 14 - nested scopes/practice/Lexer.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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

part 16 - recognizing procedure calls/lesson/Parser.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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

part 16 - recognizing procedure calls/practice/Parser.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)