trait Tlf\LexerTrait\InstructionProcessor

Contains logic to process & execute directive instructions

Constants

Properties

  • protected $haltInstructions = false; when true, no more instructions will be processed for the current directive.
  • protected $haltAll = false; when true, no more directives will be processed during the current loop

Methods

  • public function getInstructionArgs(array $cliArgs, $phpArg) Combine cli-style arguments with a php variable
  • Pass ... for each php var indice to be an argument
  • Pass // any comment to do comments
  • TODO: Pass ! to expand the php var as a call like _lexer:previous docblock
  • TODO: Pass [] to expand the php var into multiple separate instructions