Use meta to decompile python functions into ASTs
This commit is contained in:
parent
428f4ad530
commit
cd9c5e7c79
1 changed files with 3 additions and 3 deletions
|
|
@ -8,7 +8,7 @@ import unittest, logging
|
||||||
#logging.basicConfig(level=logging.DEBUG)
|
#logging.basicConfig(level=logging.DEBUG)
|
||||||
|
|
||||||
class FooIf(CDefinition):
|
class FooIf(CDefinition):
|
||||||
_name_ = 'foo'
|
_name_ = 'foo_if'
|
||||||
_retty_ = C.int
|
_retty_ = C.int
|
||||||
_argtys_ = [('x', C.int),
|
_argtys_ = [('x', C.int),
|
||||||
('y', C.int),]
|
('y', C.int),]
|
||||||
|
|
@ -23,7 +23,7 @@ class FooIf(CDefinition):
|
||||||
|
|
||||||
|
|
||||||
class FooWhile(CDefinition):
|
class FooWhile(CDefinition):
|
||||||
_name_ = 'foo'
|
_name_ = 'foo_while'
|
||||||
_retty_ = C.int
|
_retty_ = C.int
|
||||||
_argtys_ = [('x', C.int)]
|
_argtys_ = [('x', C.int)]
|
||||||
|
|
||||||
|
|
@ -38,7 +38,7 @@ class FooWhile(CDefinition):
|
||||||
return y
|
return y
|
||||||
|
|
||||||
class FooForRange(CDefinition):
|
class FooForRange(CDefinition):
|
||||||
_name_ = 'foo'
|
_name_ = 'foo_for_range'
|
||||||
_retty_ = C.int
|
_retty_ = C.int
|
||||||
_argtys_ = [('x', C.int)]
|
_argtys_ = [('x', C.int)]
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue