This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import os.path | |
import string | |
import sys | |
def xxd(file_path): | |
with open(file_path, 'r') as f: | |
array_name = file_path.replace('/','_').replace('.','_') | |
output = "unsigned char %s[] = {" % array_name | |
length = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python2.7 | |
import ast | |
from hy.lex import LexException, PrematureEndOfInput, tokenize | |
from hy.compiler import hy_compile, HyTypeError | |
import astroid.builder |