Back to index

python3.2  3.2.2
Functions | Variables
lib2to3.pgen2.token Namespace Reference

Functions

def ISTERMINAL
def ISNONTERMINAL
def ISEOF

Variables

int ENDMARKER = 0
int NAME = 1
int NUMBER = 2
int STRING = 3
int NEWLINE = 4
int INDENT = 5
int DEDENT = 6
int LPAR = 7
int RPAR = 8
int LSQB = 9
int RSQB = 10
int COLON = 11
int COMMA = 12
int SEMI = 13
int PLUS = 14
int MINUS = 15
int STAR = 16
int SLASH = 17
int VBAR = 18
int AMPER = 19
int LESS = 20
int GREATER = 21
int EQUAL = 22
int DOT = 23
int PERCENT = 24
int BACKQUOTE = 25
int LBRACE = 26
int RBRACE = 27
int EQEQUAL = 28
int NOTEQUAL = 29
int LESSEQUAL = 30
int GREATEREQUAL = 31
int TILDE = 32
int CIRCUMFLEX = 33
int LEFTSHIFT = 34
int RIGHTSHIFT = 35
int DOUBLESTAR = 36
int PLUSEQUAL = 37
int MINEQUAL = 38
int STAREQUAL = 39
int SLASHEQUAL = 40
int PERCENTEQUAL = 41
int AMPEREQUAL = 42
int VBAREQUAL = 43
int CIRCUMFLEXEQUAL = 44
int LEFTSHIFTEQUAL = 45
int RIGHTSHIFTEQUAL = 46
int DOUBLESTAREQUAL = 47
int DOUBLESLASH = 48
int DOUBLESLASHEQUAL = 49
int AT = 50
int OP = 51
int COMMENT = 52
int NL = 53
int RARROW = 54
int ERRORTOKEN = 55
int N_TOKENS = 56
int NT_OFFSET = 256
dictionary tok_name = {}

Function Documentation

Definition at line 81 of file token.py.

00081 
00082 def ISEOF(x):
00083     return x == ENDMARKER

Definition at line 78 of file token.py.

00078 
00079 def ISNONTERMINAL(x):
00080     return x >= NT_OFFSET

Definition at line 75 of file token.py.

00075 
00076 def ISTERMINAL(x):
00077     return x < NT_OFFSET


Variable Documentation

Definition at line 28 of file token.py.

Definition at line 51 of file token.py.

Definition at line 59 of file token.py.

Definition at line 34 of file token.py.

Definition at line 42 of file token.py.

Definition at line 53 of file token.py.

Definition at line 20 of file token.py.

Definition at line 21 of file token.py.

Definition at line 61 of file token.py.

Definition at line 15 of file token.py.

Definition at line 32 of file token.py.

Definition at line 57 of file token.py.

Definition at line 58 of file token.py.

Definition at line 45 of file token.py.

Definition at line 56 of file token.py.

Definition at line 9 of file token.py.

Definition at line 37 of file token.py.

Definition at line 31 of file token.py.

Definition at line 64 of file token.py.

Definition at line 30 of file token.py.

Definition at line 40 of file token.py.

Definition at line 14 of file token.py.

Definition at line 35 of file token.py.

Definition at line 43 of file token.py.

Definition at line 54 of file token.py.

Definition at line 29 of file token.py.

Definition at line 39 of file token.py.

Definition at line 16 of file token.py.

Definition at line 18 of file token.py.

Definition at line 47 of file token.py.

Definition at line 24 of file token.py.

Definition at line 65 of file token.py.

Definition at line 10 of file token.py.

Definition at line 13 of file token.py.

Definition at line 62 of file token.py.

Definition at line 38 of file token.py.

Definition at line 66 of file token.py.

Definition at line 11 of file token.py.

Definition at line 60 of file token.py.

Definition at line 33 of file token.py.

Definition at line 50 of file token.py.

Definition at line 23 of file token.py.

Definition at line 46 of file token.py.

Definition at line 63 of file token.py.

Definition at line 36 of file token.py.

Definition at line 44 of file token.py.

Definition at line 55 of file token.py.

Definition at line 17 of file token.py.

Definition at line 19 of file token.py.

Definition at line 22 of file token.py.

Definition at line 26 of file token.py.

Definition at line 49 of file token.py.

Definition at line 25 of file token.py.

Definition at line 48 of file token.py.

Definition at line 12 of file token.py.

Definition at line 41 of file token.py.

Definition at line 69 of file token.py.

Definition at line 27 of file token.py.

Definition at line 52 of file token.py.