comparison python/zcc.py @ 318:e84047f29c78

Add burg and yacc initial attempts
author Windel Bouwman
date Tue, 31 Dec 2013 12:38:15 +0100
parents e30a77ae359b
children 44f336460c2a
comparison
equal deleted inserted replaced
317:e30a77ae359b 318:e84047f29c78
116 targets = {t.name: t for t in target_list} 116 targets = {t.name: t for t in target_list}
117 targetnames = list(targets.keys()) 117 targetnames = list(targets.keys())
118 118
119 # Parse arguments: 119 # Parse arguments:
120 parser = argparse.ArgumentParser(description='lcfos Compiler') 120 parser = argparse.ArgumentParser(description='lcfos Compiler')
121 # Input:
122 parser.add_argument('source', type=argparse.FileType('r'), \ 121 parser.add_argument('source', type=argparse.FileType('r'), \
123 help='the source file to build', nargs="+") 122 help='the source file to build', nargs="+")
124 parser.add_argument('-i', '--imp', type=argparse.FileType('r'), \ 123 parser.add_argument('-i', '--imp', type=argparse.FileType('r'), \
125 help='Possible import module', action='append', default=[]) 124 help='Possible import module', action='append', default=[])
126 125