Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /home/bill/bin/py/design/codeschematics/parsers/c_parser.py in make_call_dict(filename)
- 68 (function_def_dict, set_of_nested_funcs), where the latter is the set of
- 69 functions that aren't defined at top level in the module.'''
- ---> 70 tree = parse_file(filename, use_cpp=True)
- 71 visitor = CTraverser()
- 72 #print('starting traversal')
- /usr/local/lib/python3.4/dist-packages/pycparser/__init__.py in parse_file(filename, use_cpp, cpp_path, cpp_args, parser)
- 91 if parser is None:
- 92 parser = CParser()
- ---> 93 return parser.parse(text, filename)
- /usr/local/lib/python3.4/dist-packages/pycparserext/ext_c_parser.py in parse(self, text, filename, debuglevel, initial_type_symbols)
- 62 return c_ast.FileAST([])
- 63 else:
- ---> 64 return self.cparser.parse(text, lexer=self.clex, debug=debuglevel)
- 65
- 66
- /usr/local/lib/python3.4/dist-packages/pycparser/ply/yacc.py in parse(self, input, lexer, debug, tracking, tokenfunc)
- 263 return self.parseopt(input,lexer,debug,tracking,tokenfunc)
- 264 else:
- --> 265 return self.parseopt_notrack(input,lexer,debug,tracking,tokenfunc)
- 266
- 267
- /usr/local/lib/python3.4/dist-packages/pycparser/ply/yacc.py in parseopt_notrack(self, input, lexer, debug, tracking, tokenfunc)
- 969 del symstack[-plen:]
- 970 del statestack[-plen:]
- --> 971 p.callable(pslice)
- 972 symstack.append(sym)
- 973 state = goto[statestack[-1]][pname]
- /usr/local/lib/python3.4/dist-packages/pycparserext/ext_c_parser.py in p_declarator_1(self, p)
- 242 raise NotImplementedError(
- 243 "cannot attach attributes to nodes of type '%s'"
- --> 244 % type(p[1]))
- 245 else:
- 246 p[1] = TypeDeclExt.from_pycparser(p[1])
- NotImplementedError: cannot attach attributes to nodes of type '<class 'pycparser.c_ast.FuncDecl'>'
- > /usr/local/lib/python3.4/dist-packages/pycparserext/ext_c_parser.py(244)p_declarator_1()
- 243 "cannot attach attributes to nodes of type '%s'"
- --> 244 % type(p[1]))
- 245 else:
Advertisement
Add Comment
Please, Sign In to add comment