mirror of https://github.com/geohot/qira
added clang python and started static, first push to new home
This commit is contained in:
parent
1fd271709a
commit
ccb1c834c6
|
@ -1,5 +1,6 @@
|
|||
web/.meteor/local
|
||||
.*.swp
|
||||
.*.swo
|
||||
tests/a.out
|
||||
tests/*.o
|
||||
*.pyc
|
||||
|
@ -12,7 +13,6 @@ db/
|
|||
qemu/qemu-2*
|
||||
distrib/
|
||||
qiradb/build
|
||||
cda/clang
|
||||
cda/include
|
||||
cda/clang-latest
|
||||
qemu
|
||||
|
|
|
@ -0,0 +1,24 @@
|
|||
#===- __init__.py - Clang Python Bindings --------------------*- python -*--===#
|
||||
#
|
||||
# The LLVM Compiler Infrastructure
|
||||
#
|
||||
# This file is distributed under the University of Illinois Open Source
|
||||
# License. See LICENSE.TXT for details.
|
||||
#
|
||||
#===------------------------------------------------------------------------===#
|
||||
|
||||
r"""
|
||||
Clang Library Bindings
|
||||
======================
|
||||
|
||||
This package provides access to the Clang compiler and libraries.
|
||||
|
||||
The available modules are:
|
||||
|
||||
cindex
|
||||
|
||||
Bindings for the Clang indexing library.
|
||||
"""
|
||||
|
||||
__all__ = ['cindex']
|
||||
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,34 @@
|
|||
#===- enumerations.py - Python Enumerations ------------------*- python -*--===#
|
||||
#
|
||||
# The LLVM Compiler Infrastructure
|
||||
#
|
||||
# This file is distributed under the University of Illinois Open Source
|
||||
# License. See LICENSE.TXT for details.
|
||||
#
|
||||
#===------------------------------------------------------------------------===#
|
||||
|
||||
"""
|
||||
Clang Enumerations
|
||||
==================
|
||||
|
||||
This module provides static definitions of enumerations that exist in libclang.
|
||||
|
||||
Enumerations are typically defined as a list of tuples. The exported values are
|
||||
typically munged into other types or classes at module load time.
|
||||
|
||||
All enumerations are centrally defined in this file so they are all grouped
|
||||
together and easier to audit. And, maybe even one day this file will be
|
||||
automatically generated by scanning the libclang headers!
|
||||
"""
|
||||
|
||||
# Maps to CXTokenKind. Note that libclang maintains a separate set of token
|
||||
# enumerations from the C++ API.
|
||||
TokenKinds = [
|
||||
('PUNCTUATION', 0),
|
||||
('KEYWORD', 1),
|
||||
('IDENTIFIER', 2),
|
||||
('LITERAL', 3),
|
||||
('COMMENT', 4),
|
||||
]
|
||||
|
||||
__all__ = ['TokenKinds']
|
|
@ -1,5 +1,5 @@
|
|||
#!/bin/bash -e
|
||||
sudo pip install html
|
||||
#sudo pip install html
|
||||
|
||||
mkdir -p clang-latest
|
||||
cd clang-latest
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/env python2.7
|
||||
import os
|
||||
import sys
|
||||
import cgi
|
||||
from flask import Flask,redirect,request,Blueprint
|
||||
|
||||
app = Blueprint('static',__name__)
|
||||
# make sure we can get the socketio stuff here
|
||||
|
||||
@app.route("/blah")
|
||||
def blah():
|
||||
return "blah"
|
||||
|
Loading…
Reference in New Issue