Skip to content

Instantly share code, notes, and snippets.

@agatti
Created May 31, 2024 14:51
Show Gist options
  • Save agatti/3d81af3074f5bf7d99ca51ca29e54925 to your computer and use it in GitHub Desktop.
Save agatti/3d81af3074f5bf7d99ca51ca29e54925 to your computer and use it in GitHub Desktop.
RISC-V parse tree
depth=0 file_input n=1 i=0 bt=0
depth=1 file_input_2 n=2 i=0 bt=0
depth=2 file_input_3 n=2 i=0 bt=0
depth=2 stmt n=2 i=0 bt=0
depth=3 compound_stmt n=9 i=0 bt=0
depth=4 if_stmt n=6 i=0 bt=0
depth=3 compound_stmt n=9 i=1 bt=1
depth=4 while_stmt n=5 i=0 bt=0
depth=3 compound_stmt n=9 i=2 bt=1
depth=4 for_stmt n=7 i=0 bt=0
depth=3 compound_stmt n=9 i=3 bt=1
depth=4 try_stmt n=4 i=0 bt=0
depth=3 compound_stmt n=9 i=4 bt=1
depth=4 with_stmt n=4 i=0 bt=0
depth=3 compound_stmt n=9 i=5 bt=1
depth=4 funcdef n=8 i=0 bt=0
depth=3 compound_stmt n=9 i=6 bt=1
depth=4 classdef n=5 i=0 bt=0
depth=3 compound_stmt n=9 i=7 bt=1
depth=4 decorated n=2 i=0 bt=0
depth=5 decorators n=2 i=0 bt=0
depth=6 decorator n=4 i=0 bt=0
depth=5 decorators n=2 i=1 bt=1
depth=4 decorated n=2 i=1 bt=1
depth=3 compound_stmt n=9 i=8 bt=1
depth=3 async_stmt n=2 i=0 bt=0
depth=2 stmt n=2 i=1 bt=1
depth=2 simple_stmt n=2 i=0 bt=0
depth=3 simple_stmt_2 n=3 i=0 bt=0
depth=4 small_stmt n=8 i=0 bt=0
depth=5 del_stmt n=2 i=0 bt=0
depth=4 small_stmt n=8 i=1 bt=1
depth=5 pass_stmt n=1 i=0 bt=0
depth=4 small_stmt n=8 i=2 bt=1
depth=5 flow_stmt n=5 i=0 bt=0
depth=6 break_stmt n=1 i=0 bt=0
depth=5 flow_stmt n=5 i=1 bt=1
depth=6 continue_stmt n=1 i=0 bt=0
depth=5 flow_stmt n=5 i=2 bt=1
depth=6 return_stmt n=2 i=0 bt=0
depth=5 flow_stmt n=5 i=3 bt=1
depth=6 raise_stmt n=2 i=0 bt=0
depth=5 flow_stmt n=5 i=4 bt=1
depth=5 yield_stmt n=1 i=0 bt=0
depth=6 yield_expr n=2 i=0 bt=0
depth=5 yield_stmt n=1 i=1 bt=1
depth=4 small_stmt n=8 i=3 bt=1
depth=5 import_stmt n=2 i=0 bt=0
depth=6 import_name n=2 i=0 bt=0
depth=5 import_stmt n=2 i=1 bt=1
depth=5 import_from n=4 i=0 bt=0
depth=4 small_stmt n=8 i=4 bt=1
depth=5 global_stmt n=2 i=0 bt=0
depth=4 small_stmt n=8 i=5 bt=1
depth=5 nonlocal_stmt n=2 i=0 bt=0
depth=4 small_stmt n=8 i=6 bt=1
depth=5 assert_stmt n=3 i=0 bt=0
depth=4 small_stmt n=8 i=7 bt=1
depth=4 expr_stmt n=2 i=0 bt=0
depth=5 testlist_star_expr n=3 i=0 bt=0
depth=6 testlist_star_expr_2 n=2 i=0 bt=0
depth=7 star_expr n=2 i=0 bt=0
depth=6 testlist_star_expr_2 n=2 i=1 bt=1
depth=6 test n=2 i=0 bt=0
depth=7 lambdef n=4 i=0 bt=0
depth=6 test n=2 i=1 bt=1
depth=6 test_if_expr n=2 i=0 bt=0
depth=7 or_test n=1 i=0 bt=0
depth=8 and_test n=1 i=0 bt=0
depth=9 not_test n=2 i=0 bt=0
depth=10 not_test_2 n=2 i=0 bt=0
depth=9 not_test n=2 i=1 bt=1
depth=9 comparison n=1 i=0 bt=0
depth=10 expr n=1 i=0 bt=0
depth=11 xor_expr n=1 i=0 bt=0
depth=12 and_expr n=1 i=0 bt=0
depth=13 shift_expr n=1 i=0 bt=0
depth=14 arith_expr n=1 i=0 bt=0
depth=15 term n=1 i=0 bt=0
depth=16 factor n=2 i=0 bt=0
depth=17 factor_2 n=2 i=0 bt=0
depth=18 factor_op n=3 i=0 bt=0
depth=17 factor_2 n=2 i=1 bt=1
depth=16 factor n=2 i=1 bt=1
depth=16 power n=2 i=0 bt=0
depth=17 atom_expr n=2 i=0 bt=0
depth=18 atom_expr_await n=3 i=0 bt=0
depth=17 atom_expr n=2 i=1 bt=1
depth=17 atom_expr_normal n=2 i=0 bt=0
depth=18 atom n=12 i=0 bt=0
depth=17 atom_expr_normal n=2 i=1 bt=0
depth=18 atom_expr_trailers n=2 i=0 bt=0
depth=19 trailer n=3 i=0 bt=0
depth=20 trailer_paren n=3 i=0 bt=0
depth=21 arglist n=3 i=0 bt=0
depth=22 arglist_2 n=3 i=0 bt=0
depth=23 arglist_star n=2 i=0 bt=0
depth=22 arglist_2 n=3 i=1 bt=1
depth=23 arglist_dbl_star n=2 i=0 bt=0
depth=22 arglist_2 n=3 i=2 bt=1
depth=22 argument n=2 i=0 bt=0
depth=23 test n=2 i=0 bt=0
depth=24 lambdef n=4 i=0 bt=0
depth=23 test n=2 i=1 bt=1
depth=23 test_if_expr n=2 i=0 bt=0
depth=24 or_test n=1 i=0 bt=0
depth=25 and_test n=1 i=0 bt=0
depth=26 not_test n=2 i=0 bt=0
depth=27 not_test_2 n=2 i=0 bt=0
depth=26 not_test n=2 i=1 bt=1
depth=26 comparison n=1 i=0 bt=0
depth=27 expr n=1 i=0 bt=0
depth=28 xor_expr n=1 i=0 bt=0
depth=29 and_expr n=1 i=0 bt=0
depth=30 shift_expr n=1 i=0 bt=0
depth=31 arith_expr n=1 i=0 bt=0
depth=32 term n=1 i=0 bt=0
depth=33 factor n=2 i=0 bt=0
depth=34 factor_2 n=2 i=0 bt=0
depth=35 factor_op n=3 i=0 bt=0
depth=34 factor_2 n=2 i=1 bt=1
depth=33 factor n=2 i=1 bt=1
depth=33 power n=2 i=0 bt=0
depth=34 atom_expr n=2 i=0 bt=0
depth=35 atom_expr_await n=3 i=0 bt=0
depth=34 atom_expr n=2 i=1 bt=1
depth=34 atom_expr_normal n=2 i=0 bt=0
depth=35 atom n=12 i=0 bt=0
depth=34 atom_expr_normal n=2 i=1 bt=0
depth=35 atom_expr_trailers n=2 i=0 bt=0
depth=36 trailer n=3 i=0 bt=0
depth=37 trailer_paren n=3 i=0 bt=0
depth=36 trailer n=3 i=1 bt=1
depth=37 trailer_bracket n=3 i=0 bt=0
depth=36 trailer n=3 i=2 bt=1
depth=36 trailer_period n=2 i=0 bt=0
depth=35 atom_expr_trailers n=2 i=1 bt=1
depth=34 atom_expr_normal n=2 i=2 bt=1
depth=33 power n=2 i=1 bt=0
depth=34 power_dbl_star n=2 i=0 bt=0
depth=33 power n=2 i=2 bt=1
depth=32 term n=1 i=1 bt=0
depth=33 term_op n=5 i=0 bt=0
depth=32 term n=1 i=2 bt=1
depth=31 arith_expr n=1 i=1 bt=0
depth=32 arith_op n=2 i=0 bt=0
depth=31 arith_expr n=1 i=2 bt=1
depth=30 shift_expr n=1 i=1 bt=0
depth=31 shift_op n=2 i=0 bt=0
depth=30 shift_expr n=1 i=2 bt=1
depth=29 and_expr n=1 i=1 bt=0
depth=28 xor_expr n=1 i=1 bt=0
depth=27 expr n=1 i=1 bt=0
depth=26 comparison n=1 i=1 bt=0
depth=27 comp_op n=9 i=0 bt=0
depth=28 comp_op_not_in n=2 i=0 bt=0
depth=27 comp_op n=9 i=8 bt=1
depth=27 comp_op_is n=2 i=0 bt=0
depth=26 comparison n=1 i=2 bt=1
depth=25 and_test n=1 i=1 bt=0
depth=24 or_test n=1 i=1 bt=0
depth=23 test_if_expr n=2 i=1 bt=0
depth=24 test_if_else n=4 i=0 bt=0
depth=23 test_if_expr n=2 i=2 bt=1
depth=22 argument n=2 i=1 bt=0
depth=23 argument_2 n=3 i=0 bt=0
depth=24 comp_for n=5 i=0 bt=0
depth=23 argument_2 n=3 i=1 bt=1
depth=24 generic_equal_test n=2 i=0 bt=0
depth=23 argument_2 n=3 i=2 bt=1
depth=23 argument_3 n=2 i=0 bt=0
depth=22 argument n=2 i=2 bt=1
depth=21 arglist n=3 i=1 bt=0
depth=20 trailer_paren n=3 i=2 bt=0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment