Simulador de Maquina de Turing
////////////////////// // turing: dec to bin ////////////////////// // Copyright (c) 2013 Max von Buelow // Copyright (c) 2013 kd3x // License: CC BY-NC-SA 3.0 // Simulator: turingmachinesimulator.com // Initial state: qinit // Accepting state: qfin // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! // Greetings to the course 'FGdI 1' // at the TU Darmstadt. // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! name: Decimal to binary init: qinit accept: qfin qinit,0 qinit,0,> qinit,1 qinit,1,> qinit,2 qinit,2,> qinit,3 qinit,3,> qinit,4 qinit,4,> qinit,5 qinit,5,> qinit,6 qinit,6,> qinit,7 qinit,7,> qinit,8 qinit,8,> qinit,9 qinit,9,> qinit,_ halve,0,< // Halve and go to addHalf to add the goBack halve,0 halve,0,< halve,1 addHalf,0,> halve,2 halve,1,< halve,3 addHalf,1,> halve,4 halve,2,< halve,5 addHalf,2,> halve,6 halve,3,< ...