Exemplo n.º 1
0
def main():
  parser = argparse.ArgumentParser()
  parser.add_argument('json')
  parser.add_argument('--output', required=True)
  args = parser.parse_args()

  fidl_obj = fidl.fidl_from_dict(json.load(open(args.json, 'r')))
  with open(args.output, 'w') as f:
    c = Compiler(fidl_obj, f)
    c.Compile()
Exemplo n.º 2
0
def main():
    parser = argparse.ArgumentParser()
    parser.add_argument('json')
    parser.add_argument('--output', required=True)
    args = parser.parse_args()

    fidl_obj = fidl.fidl_from_dict(json.load(open(args.json, 'r')))
    with open(args.output, 'w') as f:
        c = Compiler(fidl_obj, f)
        c.Compile()