示例#1
0
def write_command_java(g, codes):
    d = {
            "ENUM_COMMAND": make_enum_command(codes),
            "NUMBER2COMMAND": make_number2command(codes),
            "COMMAND2NUMBER": make_command2number(codes) }
    path = join(g.pkg_dir, "Command.java")
    apply_template(d, path)
示例#2
0
def write_syscall_result(g, syscalls):
    d = { "RESULTS": build_syscall_results(g, syscalls) }
    apply_template(d, join(g.pkg_dir, "SyscallResult.java"))
示例#3
0
def write_slave_helper(g, syscalls):
    d = {
            "PROCS": build_proc_of_protocol(g, syscalls),
            "DISPATCHES": build_dispatch_of_protocol(syscalls),
            "WRITE_RESULT": build_proc_of_writing_result(syscalls) }
    apply_template(d, get_helper_path(g))