URM (Unlimited Register Machine) de Cutland Plus de détails...
Aller au code source de ce fichier.
Classes | |
| class | DSPython.urmCutland.UrmCutlandInstruction |
| Une instruction pour la machine virtuelle UrmCutland. Plus de détails... | |
| class | DSPython.urmCutland.UrmCutlandProg |
| Programme (suite de UrmCutlandInstruction) pour la machine virtuelle UrmCutland. Plus de détails... | |
| class | DSPython.urmCutland.UrmCutland |
| Machine virtuelle UrmCutland : Unlimited Register Machine de Cutland (variante de la machine de Shepherdson – Sturgis) Plus de détails... | |
Paquetages | |
| namespace | DSPython.urmCutland |
| URM (Unlimited Register Machine) de Cutland | |
Variables | |
| string | DSPython.urmCutland.VERSION = 'urmCutland --- 2010 April 12' |
| Date du dernier changement pour ce module. | |
| int | DSPython.urmCutland.Z = 0 |
| Code associé à l'instruction Z. | |
| int | DSPython.urmCutland.S = 1 |
| Code associé à l'instruction S. | |
| int | DSPython.urmCutland.T = 2 |
| Code associé à l'instruction T. | |
| int | DSPython.urmCutland.J = 3 |
| Code associé à l'instruction J. | |
| tuple | DSPython.urmCutland.NOTHING = UrmCutlandInstruction(T, 1, 1) |
| Instruction qui ne fait rien. | |
| tuple | DSPython.urmCutland.NOT |
| Programme négation booléenne de n (càd si n == 0 alors 1 sinon 0) | |
| tuple | DSPython.urmCutland.LESSOREQ |
| Programme a <= b (càd si a <= b alors 1 sinon 0) | |
| tuple | DSPython.urmCutland.LESS |
| Programme a < b (càd si a < b alors 1 sinon 0) | |
| tuple | DSPython.urmCutland.GREATOREQ |
| Programme a >= b (càd si a >= b alors 1 sinon 0) | |
| tuple | DSPython.urmCutland.GREAT |
| Programme a > b (càd si a > b alors 1 sinon 0) | |
| tuple | DSPython.urmCutland.MIN |
| Programme minimum de a et b : min(a, b) | |
| tuple | DSPython.urmCutland.MAX |
| Programme maximum de a et b : max(a, b) | |
| tuple | DSPython.urmCutland.INC = UrmCutlandProg((UrmCutlandInstruction(S, 1), )) |
| Programme n + 1. | |
| tuple | DSPython.urmCutland.DEC |
| Programme n - 1. | |
| tuple | DSPython.urmCutland.ADD |
| Programme a + b. | |
| tuple | DSPython.urmCutland.SUB |
| Programme a - b. | |
| tuple | DSPython.urmCutland.MUL |
| Programme a*b. | |
| tuple | DSPython.urmCutland.DIV |
| Programme division euclidienne : quotient entier a//b et reste ab. | |
| tuple | DSPython.urmCutland.POW |
| Programme ab == a**b. | |
| tuple | DSPython.urmCutland.GCD |
| Programme plus grand commun diviseur : gcd(a, b) | |
| tuple | DSPython.urmCutland.FIBONACCI2 |
| Programme ne et (n + 1)e nombres de Fibonacci : Fn et Fn + 1 | |
| tuple | DSPython.urmCutland.FACTORIAL |
| Programme n! | |
URM (Unlimited Register Machine) de Cutland
Cf. http://www.opimedia.be/Bruno_Marchal/index.htm#Theo
Définition dans le fichier urmCutland.py.