Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- """here syntax tree generated for the python function"""
- def a():
- c()
- """ is """
- ['stmt',
- ['compound_stmt',
- ['funcdef',
- ['NAME', 'def'],
- ['NAME', 'a'],
- ['parameters', ['LPAR', '('], ['RPAR', ')']],
- ['COLON', ':'],
- ['suite',
- ['NEWLINE', ''],
- ['INDENT', ''],
- ['stmt',
- ['simple_stmt',
- ['small_stmt',
- ['expr_stmt',
- ['testlist',
- ['test',
- ['or_test',
- ['and_test',
- ['not_test',
- ['comparison',
- ['expr',
- ['xor_expr',
- ['and_expr',
- ['shift_expr',
- ['arith_expr',
- ['term',
- ['factor',
- ['power',
- ['atom', ['NAME', 'c']],
- ['trailer',
- ['LPAR', '('],
- ['RPAR', ')']]]]]]]]]]]]]]]]]],
- ['NEWLINE', '']]]]]]]
Add Comment
Please, Sign In to add comment