Exemple #1
0
        /*
         * Define a new instruction and add it to the random generators.
         */
        public void AddInstruction(string inName, Instruction inInstruction)
        {
            inName = InstructionCase(inName);
            var iag = new Interpreter.InstructionAtomGenerator(inName);

            _instructions[inName] = inInstruction;
            _generators[inName]   = iag;
            _randomGenerators.Add(iag);
        }
Exemple #2
0
 public void DefineInstruction(string inName, Instruction inInstruction)
 {
     inName = InstructionCase(inName);
     _instructions[inName] = inInstruction;
     _generators[inName]   = new Interpreter.InstructionAtomGenerator(inName);
 }