Example #1
0
''')
    write_KNHAPI2(f, data)
    write_chapter(f, 'DEVELOPERS API')
    for p in data.PROTOTYPE_LIST:
        if p.endswith('\n'): p = p[:-1] + ';\n'
        else: p += ';\n'
        f.write(p)

    f.write('''
#ifdef __cplusplus
}
#endif

// THIS FILE WAS AUTOMATICALLY GENERATED. DON'T EDIT.

''')

    
    f.close()

if __name__ == '__main__':
    genkonoha()
    from gen_vm import gen_vm_c
    gen_vm_c(".")
    from genlang import gen_stmt
    gen_stmt(".")
    #from gen_konohac import gen_stmt
    #gen_stmt(".")

Example #2
0
#!/usr/bin/python
import os, os.path, sys
from pygenlib2  import *
from source import *
from gen_class import *
from gen_make import *

#############

if __name__ == '__main__':
	bdir = '..'
	data = read_data(bdir)
	gen_konoha_init_c(bdir, data)
	gen_struct_hc(bdir, data)
	gen_class_h(bdir, data)
	if '-a' in data.OPTIONS:
		from gen_message import read_message
		#from gen_message import gen_message
		#read_message(bdir + '/.pygen/message.txt')
		#gen_message(bdir)
		from gen_vm import gen_vm_c
		gen_vm_c(bdir)
		from gen_konohac import gen_stmt
		gen_stmt(bdir)
	#gen_makefile(bdir, data)
Example #3
0
#!/usr/bin/python
import os, os.path, sys
from pygenlib2 import *
from source import *
from gen_class import *
from gen_make import *

#############

if __name__ == '__main__':
    bdir = '..'
    data = read_data(bdir)
    gen_konoha_init_c(bdir, data)
    gen_struct_hc(bdir, data)
    gen_class_h(bdir, data)
    if '-a' in data.OPTIONS:
        from gen_message import read_message
        #from gen_message import gen_message
        #read_message(bdir + '/.pygen/message.txt')
        #gen_message(bdir)
        from gen_vm import gen_vm_c
        gen_vm_c(bdir)
        from gen_konohac import gen_stmt
        gen_stmt(bdir)
    #gen_makefile(bdir, data)
Example #4
0

''')
    write_KNHAPI2(f, data)
    write_chapter(f, 'DEVELOPERS API')
    for p in data.PROTOTYPE_LIST:
        if p.endswith('\n'): p = p[:-1] + ';\n'
        else: p += ';\n'
        f.write(p)

    f.write('''
#ifdef __cplusplus
}
#endif

// THIS FILE WAS AUTOMATICALLY GENERATED. DON'T EDIT.

''')

    f.close()


if __name__ == '__main__':
    genkonoha()
    from gen_vm import gen_vm_c
    gen_vm_c(".")
    from genlang import gen_stmt
    gen_stmt(".")
    #from gen_konohac import gen_stmt
    #gen_stmt(".")