Source

jslex / jslex.py

Diff from to
             tok = '"REGEX"';
         c.append(tok)
     return ''.join(c)
-
-if __name__ == '__main__':
-    import sys
-    lexer = JsLexer()
-    for name, tok in lexer.lex(open(sys.argv[1]).read()):
-        print "%s: %r" % (name, tok)
-