Advertisement
Codefox

Untitled

Oct 7th, 2014
548
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.47 KB | None | 0 0
  1. #include <python27/asdl.h>
  2.  
  3.  
  4. typedef struct _mod *mod_ty;
  5.  
  6. typedef struct _stmt *stmt_ty;
  7.  
  8. typedef struct _expr *expr_ty;
  9.  
  10. enum _mod_kind {
  11.     Module_kind = 1, Interactive_kind = 2, Expression_kind = 3,
  12.     Suite_kind = 4
  13. };
  14. struct _mod {
  15.     enum _mod_kind kind;
  16.     union {
  17.         struct {
  18.             asdl_seq *body;
  19.         } Module;
  20.  
  21.         struct {
  22.             asdl_seq *body;
  23.         } Interactive;
  24.  
  25.         struct {
  26.             expr_ty body;
  27.         } Expression;
  28.  
  29.         struct {
  30.             asdl_seq *body;
  31.         } Suite;
  32.  
  33.     } v;
  34. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement