diff options
author | Yury Selivanov <yselivanov@sprymix.com> | 2015-05-11 22:57:16 -0400 |
---|---|---|
committer | Yury Selivanov <yselivanov@sprymix.com> | 2015-05-11 22:57:16 -0400 |
commit | 7544508f0245173bff5866aa1598c8f6cce1fc5f (patch) | |
tree | bf80850d9cd46fc811f04b8c2484fb50775c697d /Parser/tokenizer.h | |
parent | 4e6bf4b3da03b132b0698f30ee931a350585b117 (diff) | |
download | cpython-git-7544508f0245173bff5866aa1598c8f6cce1fc5f.tar.gz |
PEP 0492 -- Coroutines with async and await syntax. Issue #24017.
Diffstat (limited to 'Parser/tokenizer.h')
-rw-r--r-- | Parser/tokenizer.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Parser/tokenizer.h b/Parser/tokenizer.h index 1ce6eeba8c..3bcdad6d0e 100644 --- a/Parser/tokenizer.h +++ b/Parser/tokenizer.h @@ -65,6 +65,13 @@ struct tok_state { const char* enc; /* Encoding for the current str. */ const char* str; const char* input; /* Tokenizer's newline translated copy of the string. */ + + int defstack[MAXINDENT]; /* stack if funcs & indents where they + were defined */ + int deftypestack[MAXINDENT]; /* stack of func types + (0 not func; 1: "def name"; + 2: "async def name") */ + int def; /* Length of stack of func types */ }; extern struct tok_state *PyTokenizer_FromString(const char *, int); |