summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1991-10-20 20:24:45 (GMT)
committerGuido van Rossum <guido@python.org>1991-10-20 20:24:45 (GMT)
commit8883aaa5ebe70e53bc8f3d074706ce385810c24c (patch)
tree6b5e32a80414df5f8bc31805c4b6dac8832db809 /Include
parent2f1d87e9c2d0c1c5ae9c8a21d7bac31ff1d9f123 (diff)
downloadcpython-8883aaa5ebe70e53bc8f3d074706ce385810c24c.zip
cpython-8883aaa5ebe70e53bc8f3d074706ce385810c24c.tar.gz
cpython-8883aaa5ebe70e53bc8f3d074706ce385810c24c.tar.bz2
Added some new tokens
Diffstat (limited to 'Include')
-rw-r--r--Include/token.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/Include/token.h b/Include/token.h
index 7bd3830..9c1ed71 100644
--- a/Include/token.h
+++ b/Include/token.h
@@ -52,9 +52,14 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#define BACKQUOTE 25
#define LBRACE 26
#define RBRACE 27
-#define OP 28
-#define ERRORTOKEN 29
-#define N_TOKENS 30
+#define EQEQUAL 28
+#define NOTEQUAL 29
+#define LESSEQUAL 30
+#define GREATEREQUAL 31
+/* Don't forget to update the table tok_name in tokenizer.c! */
+#define OP 32
+#define ERRORTOKEN 33
+#define N_TOKENS 34
/* Special definitions for cooperation with parser */
@@ -67,3 +72,4 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
extern char *tok_name[]; /* Token names */
extern int tok_1char PROTO((int));
+extern int tok_2char PROTO((int, int));