if s.sy == 'cdef':
cdef_flag = 1
s.next()
- if s.sy == 'rdef':
+ if s.sy == 'cpdef':
cdef_flag = 1
overridable = 1
s.next()
s.error('cdef statement not allowed here')
return p_cdef_statement(s, level, visibility = visibility,
api = api, overridable = overridable)
- # elif s.sy == 'rdef':
+ # elif s.sy == 'cpdef':
# s.next()
# return p_c_func_or_var_declaration(s, level, s.position(), visibility = visibility, api = api, overridable = True)
else:
"raise", "import", "exec", "try", "except", "finally",
"while", "if", "elif", "else", "for", "in", "assert",
"and", "or", "not", "is", "in", "lambda", "from",
- "NULL", "cimport", "by", "with", "rdef", "DEF", "IF", "ELIF", "ELSE"
+ "NULL", "cimport", "by", "with", "cpdef", "DEF", "IF", "ELIF", "ELSE"
]
class Method: