added the ability to super()

This commit is contained in:
Jeremy Ashkenas
2009-12-17 09:07:42 -05:00
parent 1a8311b9d0
commit 1d35910567
5 changed files with 57 additions and 15 deletions

View File

@@ -7,7 +7,8 @@ class Lexer
"try", "catch", "finally", "throw",
"break", "continue",
"for", "in", "while",
"switch", "case", "default"]
"switch", "case", "default",
"super"]
IDENTIFIER = /\A([a-zA-Z$_]\w*)/
NUMBER = /\A([0-9]+(\.[0-9]+)?)/