add turingcomplete cpu compiler
This commit is contained in:
12
projects/mycpu/ifs.j
Normal file
12
projects/mycpu/ifs.j
Normal file
@@ -0,0 +1,12 @@
|
||||
counter = 0
|
||||
|
||||
fn inc():
|
||||
counter = counter + 1
|
||||
|
||||
fn main():
|
||||
if counter < 30:
|
||||
inc()
|
||||
main()
|
||||
|
||||
|
||||
main()
|
||||
Reference in New Issue
Block a user