I wrote:
> how can I get all the reserved words,[...]
If there is no way (global var, method, etc.) to get a list of all
reserved words, then another question:
What's missing in the following list?
(considering all versions of Ruby, even planned ones)
reserved_words = [
'BEGIN', 'END', 'alias', 'and', 'begin',
'break', 'case', 'class', 'def', 'defined?',
'do', 'else', 'elsif', 'end', 'module',
'ensure', 'false', 'for', 'if', 'in',
'next', 'nil', 'not', 'or', 'redo',
'rescue', 'retry', 'return', 'self', 'super',
'then', 'true', 'undef', 'unless', 'until',
'when', 'while', 'yield', '__FILE__', '__LINE__'
]
Tobi
--
http://www.pinkjuice.com/