@@ -152,7 +152,7 @@ def scanner(string):
152
152
elif ch == '_' : # catch label for subprogram
153
153
154
154
state = 40
155
- # not catch the character _
155
+ # not catches the character _
156
156
157
157
elif ch == 'r' : # catch ret-command
158
158
@@ -971,7 +971,7 @@ def parser():
971
971
print ("Error: Not found argument!" )
972
972
return
973
973
974
- # converts the token into float, if token contains olny digits.
974
+ # converts the token into float, if token contains only digits.
975
975
# TODO response of float
976
976
if token .t == "identifier" : # for variables
977
977
@@ -1033,7 +1033,7 @@ def parser():
1033
1033
return
1034
1034
1035
1035
1036
- # converts the token into float, if token contains olny digits.
1036
+ # converts the token into float, if token contains only digits.
1037
1037
if token .t == "register" :
1038
1038
1039
1039
# for the case that token is register
@@ -1094,7 +1094,7 @@ def parser():
1094
1094
1095
1095
else :
1096
1096
1097
- print ("Error: No found register!" )
1097
+ print ("Error: Not found register!" )
1098
1098
return
1099
1099
1100
1100
elif token .token == "sub" : # sub commando
@@ -1113,7 +1113,7 @@ def parser():
1113
1113
print ("Error: Not found number!" )
1114
1114
return
1115
1115
1116
- # converts the token into float, if token contains olny digits.
1116
+ # converts the token into float, if token contains only digits.
1117
1117
if token .t == "register" :
1118
1118
1119
1119
# for the case that token is register
@@ -1141,7 +1141,7 @@ def parser():
1141
1141
if tmpToken .token == "eax" :
1142
1142
eax -= token .token
1143
1143
1144
- # update zero flag
1144
+ # updated zero flag
1145
1145
if eax == 0 :
1146
1146
zeroFlag = True
1147
1147
else :
@@ -1623,7 +1623,7 @@ def parser():
1623
1623
1624
1624
def registerLabels ():
1625
1625
"""
1626
- This function search for labels / subprogram-labels and register this in the 'jumps' list.
1626
+ This function search for labels / subprogram-labels and registers this in the 'jumps' list.
1627
1627
"""
1628
1628
for i in range (len (tokens )):
1629
1629
if (tokens [i ].t == "label" ):
0 commit comments