예제 #1
0
def pcrcompile(device, args):
    with args.program_file as InF:
        print(PCRCompiler.parse_program(InF.read()))
예제 #2
0
def pcrcompile(device, args):
    with args.program_file as InF:
        print(PCRCompiler.parse_program(InF.read()))
예제 #3
0
def send(device, args):
    with args.program_file as InF:
        program = InF.read().strip()
    program = PCRCompiler.parse_program(program)
    device.sendprogram(program)
예제 #4
0
def send(device, args):
    with args.program_file as InF:
        program = InF.read().strip()
    program = PCRCompiler.parse_program(program)
    device.sendprogram(program)