Execute Brain****: Difference between revisions
Content added Content deleted
m (→{{header|Phix}}: added syntax colouring the hard way) |
Drkameleon (talk | contribs) |
||
Line 1,409: | Line 1,409: | ||
target: last vstack |
target: last vstack |
||
chop 'vstack |
chop 'vstack |
||
jumphash\[target]: instrPointer |
|||
jumphash\[instrPointer]: target |
|||
] |
] |
||
] |
] |
||
Line 1,435: | Line 1,435: | ||
command: get split Code InstructionPointer |
command: get split Code InstructionPointer |
||
case [command=] |
case [command=] |
||
when? ["+"] -> |
when? ["+"] -> Tape\[DataPointer]: Tape\[DataPointer]+1 |
||
when? ["-"] -> |
when? ["-"] -> Tape\[DataPointer]: Tape\[DataPointer]-1 |
||
when? [">"] [ |
when? [">"] [ |
||
inc 'DataPointer |
inc 'DataPointer |
||
Line 1,442: | Line 1,442: | ||
] |
] |
||
when? ["<"] -> dec 'DataPointer |
when? ["<"] -> dec 'DataPointer |
||
when? ["."] -> prints to :string to :char Tape |
when? ["."] -> prints to :string to :char Tape\[DataPointer] |
||
when? [","][ |
when? [","][ |
||
inp: to :integer input "" |
inp: to :integer input "" |