Guest User

Untitled

a guest
Aug 29th, 2015
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.38 KB | None | 0 0
  1. /home/bill/bin/py/design/codeschematics/parsers/c_parser.py in make_call_dict(filename)
  2. 68 (function_def_dict, set_of_nested_funcs), where the latter is the set of
  3. 69 functions that aren't defined at top level in the module.'''
  4. ---> 70 tree = parse_file(filename, use_cpp=True)
  5. 71 visitor = CTraverser()
  6. 72 #print('starting traversal')
  7.  
  8. /usr/local/lib/python3.4/dist-packages/pycparser/__init__.py in parse_file(filename, use_cpp, cpp_path, cpp_args, parser)
  9. 91 if parser is None:
  10. 92 parser = CParser()
  11. ---> 93 return parser.parse(text, filename)
  12.  
  13. /usr/local/lib/python3.4/dist-packages/pycparserext/ext_c_parser.py in parse(self, text, filename, debuglevel, initial_type_symbols)
  14. 62 return c_ast.FileAST([])
  15. 63 else:
  16. ---> 64 return self.cparser.parse(text, lexer=self.clex, debug=debuglevel)
  17. 65
  18. 66
  19.  
  20. /usr/local/lib/python3.4/dist-packages/pycparser/ply/yacc.py in parse(self, input, lexer, debug, tracking, tokenfunc)
  21. 263 return self.parseopt(input,lexer,debug,tracking,tokenfunc)
  22. 264 else:
  23. --> 265 return self.parseopt_notrack(input,lexer,debug,tracking,tokenfunc)
  24. 266
  25. 267
  26.  
  27. /usr/local/lib/python3.4/dist-packages/pycparser/ply/yacc.py in parseopt_notrack(self, input, lexer, debug, tracking, tokenfunc)
  28. 969 del symstack[-plen:]
  29. 970 del statestack[-plen:]
  30. --> 971 p.callable(pslice)
  31. 972 symstack.append(sym)
  32. 973 state = goto[statestack[-1]][pname]
  33.  
  34. /usr/local/lib/python3.4/dist-packages/pycparserext/ext_c_parser.py in p_declarator_1(self, p)
  35. 242 raise NotImplementedError(
  36. 243 "cannot attach attributes to nodes of type '%s'"
  37. --> 244 % type(p[1]))
  38. 245 else:
  39. 246 p[1] = TypeDeclExt.from_pycparser(p[1])
  40.  
  41. NotImplementedError: cannot attach attributes to nodes of type '<class 'pycparser.c_ast.FuncDecl'>'
  42. > /usr/local/lib/python3.4/dist-packages/pycparserext/ext_c_parser.py(244)p_declarator_1()
  43. 243 "cannot attach attributes to nodes of type '%s'"
  44. --> 244 % type(p[1]))
  45. 245 else:
Advertisement
Add Comment
Please, Sign In to add comment