Guest User

Untitled

a guest
Jun 19th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. """here syntax tree generated for the python function"""
  2. def a():
  3. c()
  4.  
  5. """ is """
  6.  
  7. ['stmt',
  8. ['compound_stmt',
  9. ['funcdef',
  10. ['NAME', 'def'],
  11. ['NAME', 'a'],
  12. ['parameters', ['LPAR', '('], ['RPAR', ')']],
  13. ['COLON', ':'],
  14. ['suite',
  15. ['NEWLINE', ''],
  16. ['INDENT', ''],
  17. ['stmt',
  18. ['simple_stmt',
  19. ['small_stmt',
  20. ['expr_stmt',
  21. ['testlist',
  22. ['test',
  23. ['or_test',
  24. ['and_test',
  25. ['not_test',
  26. ['comparison',
  27. ['expr',
  28. ['xor_expr',
  29. ['and_expr',
  30. ['shift_expr',
  31. ['arith_expr',
  32. ['term',
  33. ['factor',
  34. ['power',
  35. ['atom', ['NAME', 'c']],
  36. ['trailer',
  37. ['LPAR', '('],
  38. ['RPAR', ')']]]]]]]]]]]]]]]]]],
  39. ['NEWLINE', '']]]]]]]
Add Comment
Please, Sign In to add comment