SharpFuck/BrainfuckInterpreter.cs
/// <summary>
/// Sets up the interpreter for step by step execution.
/// </summary>
/// <param name="bf">Brainfuck code</param>
/// <param name="input">Optional input string</param>
Sets up the interpreter for step by step execution.
Sets up the interpreter for step by step execution .
public void RunStepped(string bf, string input = null)
        {
            m_program = bf.ToCharArray();
            m_input = input?.ToCharArray();
            m_output.Clear();
            m_inputPointer = 0;
            m_instructionPointer = 0;
            m_dataPointer = 0;
            for(int i = 0; i < m_data.Length; i++)
                m_data[i] = 0;
        }
public void RunStepped ( string bf , string input = null ) { m_program = bf . ToCharArray ( ) ; m_input = input ? . ToCharArray ( ) ; m_output . Clear ( ) ; m_inputPointer = 0 ; m_instructionPointer = 0 ; m_dataPointer = 0 ; for ( int i = 0 ; i < m_data . Length ; i ++ ) m_data [ i ] = 0 ; }
Sets up the interpreter for step by step execution.
Sets up the interpreter for step by step execution .
bf
string
None
input
string
Optional input string
Optional input string