Minor changes
This commit is contained in:
parent
05cc358eea
commit
e9d033044c
27 changed files with 949 additions and 94 deletions
24
tests/pure_runner.php
Normal file
24
tests/pure_runner.php
Normal file
|
@ -0,0 +1,24 @@
|
|||
<?php
|
||||
|
||||
use RTEX\Classes\InstructionBuilder;
|
||||
use RTEX\Engine;
|
||||
use RTEX\Objects\Program;
|
||||
|
||||
require 'ncc';
|
||||
|
||||
import('net.nosial.rtex', 'latest');
|
||||
|
||||
$program = new Program();
|
||||
|
||||
$program->getMain()->addInstruction(InstructionBuilder::set('foo', 'bar'));
|
||||
$program->getMain()->addInstruction(InstructionBuilder::set('bar', 500));
|
||||
|
||||
$program->getMain()->addInstruction(InstructionBuilder::set('results',
|
||||
InstructionBuilder::sum(
|
||||
500,
|
||||
InstructionBuilder::get('bar')
|
||||
)
|
||||
));
|
||||
|
||||
$engine = new Engine($program);
|
||||
$engine->run();
|
Loading…
Add table
Add a link
Reference in a new issue