[PHPTuring] element index

All elements
a c e g h i m n o p r s t u w _
_
top
__construct
Machine::__construct() in Machine.php
__construct
Instruction::__construct() in Instruction.php
__construct
a
top
addInstruction
Adds an Instruction to the Program
all.php
all.php in all.php
c
top
compile
Compiler::compile() in interface.Compiler.php
Parse a string into a Program
Compiler
Compiler in interface.Compiler.php
Compiler interface
compile
SimpleCompiler::compile() in SimpleCompiler.php
Parse a string into a Program
CompilerTestCase
CompilerTestCase in index.php
CompilerTestCase class
e
top
external.php
external.php in external.php
SEP_CELLS
SimpleTapeParser::SEP_CELLS in SimpleTapeParser.php
SEP_FIELDS
SimpleCompiler::SEP_FIELDS in SimpleCompiler.php
SEP_LINES
SimpleCompiler::SEP_LINES in SimpleCompiler.php
g
top
getInitialState
Returns the Instruction's name
getInstruction
Returns the Instruction to follow given state and read value
getNextMove
Instruction::getNextMove() in Instruction.php
Return the next required Head move
getNextState
Instruction::getNextState() in Instruction.php
Return the next State name
getPrerequisite
Returns the Instruction's prerequisite
getState
Machine::getState() in Machine.php
Returns the current state of the Machine
getSymbolToWrite
Return the next symbol to print
getTape
Machine::getTape() in Machine.php
Return the Tape (typically for debugging purposes)
h
top
Head
Head in Head.php
Head class
Head.php
Head.php in Head.php
HeadTestCase
HeadTestCase in index.php
HeadTestCase class
i
top
Instruction
Instruction in Instruction.php
Instruction class
Instruction.php
Instruction.php in Instruction.php
interface.Compiler.php
interface.Compiler.php in interface.Compiler.php
interface.Observable.php
interface.Observable.php in interface.Observable.php
interface.Observer.php
interface.Observer.php in interface.Observer.php
interface.TapeParser.php
interface.TapeParser.php in interface.TapeParser.php
index.php
index.php in index.php
InstructionTestCase
InstructionTestCase in index.php
InstructionTestCase class
index.php
index.php in index.php
m
top
Machine
Machine in Machine.php
Machine class
Machine.php
Machine.php in Machine.php
MachineTestCase
MachineTestCase in index.php
MachineTestCase class
n
top
notify
phptObserver::notify() in interface.Observer.php
Notify the Observer
notify
SimpleDebugger::notify() in SimpleDebugger.php
Notify the Observer
o
top
MOVE_L
Instruction::MOVE_L in Instruction.php
MOVE_R
Instruction::MOVE_R in Instruction.php
ObservationTestCase
ObservationTestCase in index.php
ObservationTestCase class
p
top
parse
TapeParser::parse() in interface.TapeParser.php
Parse a string into a Tape
phptObservable
phptObservable in interface.Observable.php
Observable interface
phptObserver
phptObserver in interface.Observer.php
phptObserver interface
Program
Program in Program.php
Program class
Program.php
Program.php in Program.php
parse
SimpleTapeParser::parse() in SimpleTapeParser.php
Parse a string into a Tape
ProgramTestCase
ProgramTestCase in index.php
ProgramTestCase class
r
top
read
Head::read() in Head.php
Returns the current symbol
read
Tape::read() in Tape.php
Reads the value for a given cell
registerObserver
phptObservable::registerObserver() in interface.Observable.php
Register an Observer
registerObserver
Register an Observer
run
Machine::run() in Machine.php
Loads the Machine with a Program and runs it
s
top
setTape
Head::setTape() in Head.php
Tells the Head which Tape to use
shiftLeft
Head::shiftLeft() in Head.php
Shifts the head one cell left
shiftRight
Head::shiftRight() in Head.php
Shifts the head one cell right
SimpleCompiler.php
SimpleCompiler.php in SimpleCompiler.php
SimpleDebugger.php
SimpleDebugger.php in SimpleDebugger.php
SimpleTapeParser.php
SimpleTapeParser.php in SimpleTapeParser.php
simple.php
simple.php in simple.php
SimpleCompiler
SimpleCompiler in SimpleCompiler.php
SimpleCompiler class - an example compiler
SimpleDebugger
SimpleDebugger in SimpleDebugger.php
SimpleDebugger class
SimpleTapeParser
SimpleTapeParser in SimpleTapeParser.php
SimpleTapeParser class - an example tape parser
t
top
Tape
Tape in Tape.php
Tape class
TapeParser
TapeParser in interface.TapeParser.php
TapeParser interface
Tape.php
Tape.php in Tape.php
TapeParserTestCase
TapeParserTestCase in index.php
TapeParserTestCase class
TapeTestCase
TapeTestCase in index.php
TapeTestCase class
testCompilingOneLineIntoProgram
testCompilingSeveralLinesIntoProgram
testDebugger
testDefaultInitialStateisZero
testFindingInstructionsByStateandCurrentCellValue
testInitialStateCanBeOverriden
testInstructionValuesInitialisedCorrectly
testMyExampleStringisParsedCorrectly
testObserverIsNotifiedCorrectly_OneStep
testObserverIsNotifiedCorrectly_ThreeSteps
testReadandWriteWithBlankTape
testReadWithPredefinedTape
testRunningMachine
testTapeReturnsBlankForUnsetCells
testTapeStoresCellValuesCorrectly
u
top
UnitTestCase
UnitTestCase in external.php
SimpleTest
w
top
write
Tape::write() in Tape.php
Writes a value to a given cell
write
Head::write() in Head.php
Writes a new value to the current
watch
SimpleDebugger::watch() in SimpleDebugger.php
Tell the debugger which Machine to subscribe to
a c e g h i m n o p r s t u w _