Example #1
0
def setup(instruction_name: str) -> SingleInstructionSetup:
    return SingleInstructionSetup(
        instruction_from_parts.Parser(new_file.parts_parser(True)),
        new_file.TheInstructionDocumentation(instruction_name))
Example #2
0
def instr_setup(instruction: Instruction) -> SingleInstructionSetup:
    return SingleInstructionSetup(
        parser=ParserThatGives(instruction),
        documentation=instruction_documentation('instruction name'),
    )
Example #3
0
def setup(instruction_name: str) -> SingleInstructionSetup:
    return SingleInstructionSetup(
        parser.Parser(), doc.TheInstructionDocumentation(instruction_name))
Example #4
0
def setup(instruction_name: str) -> SingleInstructionSetup:
    return SingleInstructionSetup(
        instruction_from_parts.Parser(
            shell_common.parts_parser(instruction_name)),
        shell_common.DescriptionForNonAssertPhaseInstruction(
            instruction_name, phase_identifier.BEFORE_ASSERT.section_name))
Example #5
0
def setup(instruction_name: str) -> SingleInstructionSetup:
    return SingleInstructionSetup(
        instruction_from_parts.Parser(sys_cmd_common.parts_parser(instruction_name)),
        sys_cmd_common.DescriptionForNonAssertPhaseInstruction(instruction_name,
                                                               phase_identifier.SETUP.section_name))
Example #6
0
def setup(instruction_name: str) -> SingleInstructionSetup:
    return SingleInstructionSetup(
        instruction_from_parts.Parser(parse.parts_parser(phase_is_after_act=True)),
        doc.TheInstructionDocumentation(instruction_name))
Example #7
0
def setup(instruction_name: str) -> SingleInstructionSetup:
    return SingleInstructionSetup(Parser(),
                                  actor_utils.InstructionDocumentation(instruction_name))
Example #8
0
def setup(instruction_name: str) -> SingleInstructionSetup:
    return SingleInstructionSetup(
        instruction_from_parts.Parser(new_dir_utils.PARTS_PARSER),
        new_dir_utils.TheInstructionDocumentation(instruction_name))
def _setup_hard_error_conf_phase_instruction(
        instruction_name: str) -> SingleInstructionSetup:
    return SingleInstructionSetup(
        _ParserOfConfPhaseInstructionThatCausesHardError(),
        instruction_documentation.instruction_documentation(instruction_name),
    )
Example #10
0
def _setup_for_actor_that_parses_references(
        instruction_name: str) -> SingleInstructionSetup:
    return SingleInstructionSetup(
        _SetActorThatParsesReferences(),
        instruction_documentation.instruction_documentation(instruction_name),
    )