git @ Cat's Eye Technologies Turmac / 470b0dc
Tidy up the loose ends. Chris Pressey 4 months ago
6 changed file(s) with 21 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
0 # SPDX-FileCopyrightText: Chris Pressey, the creator of this work, has dedicated it to the public domain.
1 # For more information, please refer to <https://unlicense.org/>
2 # SPDX-License-Identifier: Unlicense
3
4 version = 1
5
6 [[annotations]]
7 path = "eg/**"
8 precedence = "aggregate"
9 SPDX-FileCopyrightText = "Chris Pressey, the creator of this work, has dedicated it to the public domain."
10 SPDX-License-Identifier = "Unlicense"
+0
-3
eg/copy.turmac.csv.license less more
0 SPDX-FileCopyrightText: Chris Pressey, the creator of this work, has placed it under the CC0 public domain dedication.
1
2 SPDX-License-Identifier: CC0-1.0
+0
-3
eg/tm1.turmac.csv.license less more
0 SPDX-FileCopyrightText: Chris Pressey, the creator of this work, has placed it under the CC0 public domain dedication.
1
2 SPDX-License-Identifier: CC0-1.0
0 in state,if the symbol is,write the symbol,move the head,go to state
1 S0,_,_,R,H
0 -- SPDX-FileCopyrightText: Chris Pressey, the creator of this work, has dedicated it to the public domain.
1 -- For more information, please refer to <https://unlicense.org/>
2 -- SPDX-License-Identifier: Unlicense
3
04 module Language.Turmac.Backend.Kondey where
15
26 import Data.List (intercalate)
812
913 --
1014 -- Under development!
15 --
16 -- TODO: deal with the fact that a tape full of blanks is NOT a good starting
17 -- tape for this simulation.
1118 --
1219
1320 --
7979 compileTo "turmac" = compileToTurmac
8080 compileTo "python" = compileToPython
8181 compileTo "kondey" = compileToKondey
82 compileTo _ = error "--backend must be given when compiling, and must be one of: 'ir-dump', 'turmac', 'python', 'kondey'"
82 compileTo _ = error "--backend must be given when compiling, and must be one of: 'ir-dump', 'turmac', or 'python'"
8383
8484 --
8585 -- Driver