Skip to content

Commit 094be18

Browse files
committed
Improved the README indentation
1 parent 97c7e7a commit 094be18

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,21 @@ Why i did it? Because I was bored. Why does this language exists in the first pl
3434

3535
# ERRORS
3636
If it doesn't work, depending on the exit it can be the following:
37+
3738
0 - No problems on the code, have you checked that it's well written?
39+
3840
1 - There is an unfinished loop.
41+
3942
2 - You are trying to access a negative cell position.
43+
4044
3 - 1 & 2.
45+
4146
4 - Not enough input or not input at all.
47+
4248
5 - 1 & 4
49+
4350
6 - 2 & 4
51+
4452
7 - 1 & 2 & 4
4553

4654
# TODO

main.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def checkErrors(source, argv):
4747

4848
if clStat < 0:
4949
err += 2
50-
50+
5151
if len(argv) < 3 and getInp != 0:
5252
err += 4
5353
try:
@@ -60,7 +60,6 @@ def checkErrors(source, argv):
6060
print(f"\nCode returned {err}.")
6161
exit(err)
6262

63-
6463
# Calcula el numero necesario de celdas
6564
# para que el programa funcione correctamente
6665
# usando el minimo numero de recursos.
@@ -73,7 +72,7 @@ def getCells(source):
7372
num -= 1
7473
if num > cells:
7574
cells = num
76-
return cells + 2
75+
return cells
7776

7877

7978
# Obtiene el input y se lo mete a 'stdin'
@@ -95,10 +94,9 @@ def getCells(source):
9594
# Le agrega el numero necesario de celdas necesarias + 2,
9695
# para situaciones inesperadas
9796
cells = []
98-
for i in range(getCells(source)):
97+
for i in range(getCells(source) + 2):
9998
cells.append(0)
10099

101-
102100
# Interpretador.
103101
while prgPos != len(source):
104102
# Le da el valor de la instruccion a 'obj'

0 commit comments

Comments
 (0)