diff options
author | Pearu Peterson <pearu.peterson@gmail.com> | 2006-10-01 11:49:23 +0000 |
---|---|---|
committer | Pearu Peterson <pearu.peterson@gmail.com> | 2006-10-01 11:49:23 +0000 |
commit | c3c53e6805beb164581f041a69c9f51c2740d344 (patch) | |
tree | 70d942460a7624996b6a7ee0dd5e25c014b9772f /numpy/f2py/lib/python_wrapper.py | |
parent | 6c52e6fc05f89f13871b79074ea8891c11092d35 (diff) | |
download | numpy-c3c53e6805beb164581f041a69c9f51c2740d344.tar.gz |
F2PY G3: Moved Fortran parser related code to subpackage parser.
Diffstat (limited to 'numpy/f2py/lib/python_wrapper.py')
-rw-r--r-- | numpy/f2py/lib/python_wrapper.py | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/numpy/f2py/lib/python_wrapper.py b/numpy/f2py/lib/python_wrapper.py index 351dd7c02..35f3147fc 100644 --- a/numpy/f2py/lib/python_wrapper.py +++ b/numpy/f2py/lib/python_wrapper.py @@ -5,9 +5,11 @@ import re import os import sys -from block_statements import * +from parser.api import * + +#from block_statements import * #from typedecl_statements import intrinsic_type_spec, Character -from utils import CHAR_BIT +#from utils import CHAR_BIT from wrapper_base import * @@ -596,9 +598,9 @@ initialize_%(typename)s_interface(initialize_%(typename)s_interface_c);\ if __name__ == '__main__': - from utils import str2stmt, get_char_bit - - stmt = str2stmt(""" + #from utils import str2stmt, get_char_bit + + stmt = parse(""" module rat integer :: i type info @@ -641,7 +643,7 @@ if __name__ == '__main__': """ wm = PythonWrapperModule('foo') - wm.add(str2stmt(foo_code)) + wm.add(parse(foo_code)) #wm.add_fortran_code(foo_code) #wm.add_subroutine(str2stmt(foo_code)) #print wm.c_code() |