Ruby
1.9.3p551(2014-11-13revision48407)
Main Page
Modules
Data Structures
Files
File List
Globals
id.h
Go to the documentation of this file.
1
/* DO NOT EDIT THIS FILE DIRECTLY */
2
/**********************************************************************
3
4
id.h -
5
6
$Author: usa $
7
created at: Sun Oct 19 21:12:51 2008
8
9
Copyright (C) 2007 Koichi Sasada
10
11
**********************************************************************/
12
13
#ifndef RUBY_ID_H
14
#define RUBY_ID_H
15
16
#define ID_SCOPE_SHIFT 3
17
#define ID_SCOPE_MASK 0x07
18
#define ID_LOCAL 0x00
19
#define ID_INSTANCE 0x01
20
#define ID_GLOBAL 0x03
21
#define ID_ATTRSET 0x04
22
#define ID_CONST 0x05
23
#define ID_CLASS 0x06
24
#define ID_JUNK 0x07
25
#define ID_INTERNAL ID_JUNK
26
27
#ifdef USE_PARSE_H
28
#include "
parse.h
"
29
#endif
30
31
#include "
vm_opts.h
"
/* for SUPPORT_JOKE */
32
33
#define symIFUNC ID2SYM(idIFUNC)
34
#define symCFUNC ID2SYM(idCFUNC)
35
36
#if !defined tLAST_TOKEN && defined YYTOKENTYPE
37
#define tLAST_TOKEN tLAST_TOKEN
38
#endif
39
40
enum
ruby_method_ids
{
41
#ifndef tLAST_TOKEN
42
tUPLUS
= 321,
43
tUMINUS
= 322,
44
tPOW
= 323,
45
tCMP
= 324,
46
tEQ
= 325,
47
tEQQ
= 326,
48
tNEQ
= 327,
49
tGEQ
= 328,
50
tLEQ
= 329,
51
tANDOP
= 330,
52
tOROP
= 331,
53
tMATCH
= 332,
54
tNMATCH
= 333,
55
tDOT2
= 334,
56
tDOT3
= 335,
57
tAREF
= 336,
58
tASET
= 337,
59
tLSHFT
= 338,
60
tRSHFT
= 339,
61
tLAMBDA
= 352,
62
idNULL
= 365,
63
idRespond_to
= 366,
64
idIFUNC
= 367,
65
idCFUNC
= 368,
66
id_core_set_method_alias
= 369,
67
id_core_set_variable_alias
= 370,
68
id_core_undef_method
= 371,
69
id_core_define_method
= 372,
70
id_core_define_singleton_method
= 373,
71
id_core_set_postexe
= 374,
72
tLAST_TOKEN
= 375,
73
#endif
74
idDot2
=
tDOT2
,
75
idDot3
=
tDOT3
,
76
idUPlus
=
tUPLUS
,
77
idUMinus
=
tUMINUS
,
78
idPow
=
tPOW
,
79
idCmp
=
tCMP
,
80
idPLUS
=
'+'
,
81
idMINUS
=
'-'
,
82
idMULT
=
'*'
,
83
idDIV
=
'/'
,
84
idMOD
=
'%'
,
85
idLT
=
'<'
,
86
idLTLT
=
tLSHFT
,
87
idLE
=
tLEQ
,
88
idGT
=
'>'
,
89
idGE
=
tGEQ
,
90
idEq
=
tEQ
,
91
idEqq
=
tEQQ
,
92
idNeq
=
tNEQ
,
93
idNot
=
'!'
,
94
idBackquote
=
'`'
,
95
idEqTilde
=
tMATCH
,
96
idNeqTilde
=
tNMATCH
,
97
idAREF
=
tAREF
,
98
idASET
=
tASET
,
99
idLAST_TOKEN
=
tLAST_TOKEN
>>
ID_SCOPE_SHIFT
,
100
tIntern
,
101
tMethodMissing
,
102
tLength
,
103
tSize
,
104
tGets
,
105
tSucc
,
106
tEach
,
107
tProc
,
108
tLambda
,
109
tSend
,
110
t__send__
,
111
tInitialize
,
112
tUScore
,
113
#if SUPPORT_JOKE
114
tBitblt,
115
tAnswer,
116
#endif
117
tLAST_ID
,
118
#define TOKEN2ID(n) id##n = ((t##n<<ID_SCOPE_SHIFT)|ID_LOCAL)
119
#if SUPPORT_JOKE
120
TOKEN2ID
(Bitblt),
121
TOKEN2ID
(Answer),
122
#endif
123
TOKEN2ID
(Intern),
124
TOKEN2ID
(MethodMissing),
125
TOKEN2ID
(Length),
126
TOKEN2ID
(Size),
127
TOKEN2ID
(Gets),
128
TOKEN2ID
(Succ),
129
TOKEN2ID
(Each),
130
TOKEN2ID
(Proc),
131
TOKEN2ID
(Lambda),
132
TOKEN2ID
(Send),
133
TOKEN2ID
(__send__),
134
TOKEN2ID
(Initialize),
135
TOKEN2ID
(UScore),
136
TOKEN2ID
(LAST_ID)
137
};
138
139
#ifdef tLAST_TOKEN
140
struct
ruby_method_ids_check
{
141
#define ruby_method_id_check_for(name, value) \
142
int checking_for_##name[name == (value) ? 1 : -1]
143
ruby_method_id_check_for
(
tUPLUS
, 321);
144
ruby_method_id_check_for
(
tUMINUS
, 322);
145
ruby_method_id_check_for
(
tPOW
, 323);
146
ruby_method_id_check_for
(
tCMP
, 324);
147
ruby_method_id_check_for
(
tEQ
, 325);
148
ruby_method_id_check_for
(
tEQQ
, 326);
149
ruby_method_id_check_for
(
tNEQ
, 327);
150
ruby_method_id_check_for
(
tGEQ
, 328);
151
ruby_method_id_check_for
(
tLEQ
, 329);
152
ruby_method_id_check_for
(
tANDOP
, 330);
153
ruby_method_id_check_for
(
tOROP
, 331);
154
ruby_method_id_check_for
(
tMATCH
, 332);
155
ruby_method_id_check_for
(
tNMATCH
, 333);
156
ruby_method_id_check_for
(
tDOT2
, 334);
157
ruby_method_id_check_for
(
tDOT3
, 335);
158
ruby_method_id_check_for
(
tAREF
, 336);
159
ruby_method_id_check_for
(
tASET
, 337);
160
ruby_method_id_check_for
(
tLSHFT
, 338);
161
ruby_method_id_check_for
(
tRSHFT
, 339);
162
ruby_method_id_check_for
(
tLAMBDA
, 352);
163
ruby_method_id_check_for
(
idNULL
, 365);
164
ruby_method_id_check_for
(
idRespond_to
, 366);
165
ruby_method_id_check_for
(
idIFUNC
, 367);
166
ruby_method_id_check_for
(
idCFUNC
, 368);
167
ruby_method_id_check_for
(
id_core_set_method_alias
, 369);
168
ruby_method_id_check_for
(
id_core_set_variable_alias
, 370);
169
ruby_method_id_check_for
(
id_core_undef_method
, 371);
170
ruby_method_id_check_for
(
id_core_define_method
, 372);
171
ruby_method_id_check_for
(
id_core_define_singleton_method
, 373);
172
ruby_method_id_check_for
(
id_core_set_postexe
, 374);
173
ruby_method_id_check_for
(
tLAST_TOKEN
, 375);
174
};
175
#endif
176
177
#endif
/* RUBY_ID_H */
tSize
Definition:
ripper.y:103
tLAMBDA
Definition:
ripper.y:135
tDOT3
Definition:
ripper.y:118
tOROP
Definition:
ripper.y:114
tCMP
Definition:
ripper.y:107
ruby_method_ids
ruby_method_ids
Definition:
ripper.y:40
idEqTilde
Definition:
ripper.y:95
TOKEN2ID
#define TOKEN2ID(n)
tDOT2
Definition:
ripper.y:117
tUPLUS
Definition:
ripper.y:104
id_core_undef_method
Definition:
ripper.y:154
tAREF
Definition:
ripper.y:119
idBackquote
Definition:
ripper.y:94
tProc
Definition:
ripper.y:107
parse.h
tMethodMissing
Definition:
ripper.y:101
tEQ
Definition:
ripper.y:108
idNULL
Definition:
ripper.y:148
idPow
Definition:
ripper.y:78
idGT
Definition:
ripper.y:88
tGEQ
Definition:
ripper.y:111
idUPlus
Definition:
ripper.y:76
id_core_set_postexe
Definition:
ripper.y:157
tPOW
Definition:
ripper.y:106
idLT
Definition:
ripper.y:85
tANDOP
Definition:
ripper.y:113
tLAST_TOKEN
#define tLAST_TOKEN
Definition:
ripper.y:37
idNeqTilde
Definition:
ripper.y:96
idNeq
Definition:
ripper.y:92
id_core_define_singleton_method
Definition:
ripper.y:156
idCFUNC
Definition:
ripper.y:151
tLength
Definition:
ripper.y:102
id_core_set_variable_alias
Definition:
ripper.y:153
tLAST_ID
Definition:
ripper.y:117
idDIV
Definition:
ripper.y:83
tEQQ
Definition:
ripper.y:109
idUMinus
Definition:
ripper.y:77
t__send__
Definition:
ripper.y:110
tLEQ
Definition:
ripper.y:112
vm_opts.h
idIFUNC
Definition:
ripper.y:150
ID_SCOPE_SHIFT
#define ID_SCOPE_SHIFT
Definition:
id.h:16
idMOD
Definition:
ripper.y:84
tMATCH
Definition:
ripper.y:115
tGets
Definition:
ripper.y:104
tRSHFT
Definition:
ripper.y:122
idLE
Definition:
ripper.y:87
idLTLT
Definition:
ripper.y:86
idMINUS
Definition:
ripper.y:81
idCmp
Definition:
ripper.y:79
ruby_method_ids_check
Definition:
ripper.y:140
tSucc
Definition:
ripper.y:105
idASET
Definition:
ripper.y:98
idPLUS
Definition:
ripper.y:80
idEq
Definition:
ripper.y:90
tUScore
Definition:
ripper.y:112
tLSHFT
Definition:
ripper.y:121
id_core_set_method_alias
Definition:
ripper.y:152
tNEQ
Definition:
ripper.y:110
tUMINUS
Definition:
ripper.y:105
id_core_define_method
Definition:
ripper.y:155
idNot
Definition:
ripper.y:93
tLambda
Definition:
ripper.y:108
tEach
Definition:
ripper.y:106
tSend
Definition:
ripper.y:109
tIntern
Definition:
ripper.y:100
idDot3
Definition:
ripper.y:75
idEqq
Definition:
ripper.y:91
tASET
Definition:
ripper.y:120
idAREF
Definition:
ripper.y:97
tNMATCH
Definition:
ripper.y:116
idDot2
Definition:
ripper.y:74
ruby_method_ids_check::ruby_method_id_check_for
ruby_method_id_check_for(tUPLUS, 321)
tInitialize
Definition:
ripper.y:111
idLAST_TOKEN
Definition:
ripper.y:99
idMULT
Definition:
ripper.y:82
idGE
Definition:
ripper.y:89
idRespond_to
Definition:
ripper.y:149
Generated by
1.8.5