Remove extra stuff

This commit is contained in:
2025-10-30 17:15:43 +11:00
parent 976e9dfaa0
commit 5e9c2273a9
3 changed files with 5 additions and 11 deletions

View File

@@ -173,7 +173,6 @@ def generateCode(line: list[str], offset: int) -> str:
return returnval
elif keyword == 'inc':
warn('Increment not correctly implemented yet, do not use this command.')
returnval = '>' * offset + '[>]'
idx = getIndex(line[1])
for var in variables[:idx]:
@@ -228,7 +227,6 @@ def generateCode(line: list[str], offset: int) -> str:
# Return to start
returnval += '<<<<<'
for var in reversed(variables[:idx]):
print(var.bytes)
if var.bytes >= 0:
returnval += '<' * (var.bytes+1)
elif var.bytes == -1:

View File

@@ -12,8 +12,10 @@ Create an integer: `int name value`
Print a string: `print name`
Increment an int: `inc name`
Example program (prints "Hello, World"):
```cpp
string var 13 "Hello, world!"
```py
string var 13 "Hello, world!" # Or -1 bytes for a dynamic string
print var
```

View File

@@ -1,11 +1,5 @@
string str1 13 "Hello, world!"
<<<<<<< HEAD
string str2 -1 "Testing dynamic string!"
int var -1
inc var
inc var
=======
int var 100000
inc str1
print var
>>>>>>> 89065711cea711879e4f0bfc53b3da3974590b8c
inc var