add turingcomplete cpu compiler

This commit is contained in:
Jose Luis Montañes Ojados
2026-03-03 01:18:47 +01:00
parent d8b4f9b2ea
commit 9610957f1b
13 changed files with 1284 additions and 6 deletions

3
projects/mycpu/assign.j Normal file
View File

@@ -0,0 +1,3 @@
x = 10
y = 512
z = x + y

View File

@@ -0,0 +1,6 @@
g = 2
fn suma(x, y):
return x + y
x = suma(5, 2) - g + 1

12
projects/mycpu/ifs.j Normal file
View File

@@ -0,0 +1,12 @@
counter = 0
fn inc():
counter = counter + 1
fn main():
if counter < 30:
inc()
main()
main()

4
projects/mycpu/while.j Normal file
View File

@@ -0,0 +1,4 @@
counter = 0
while counter < 65000:
counter = counter + 1