diff -r 000000000000 -r b2e55f320d48 jslextest.lua --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jslextest.lua Fri Oct 15 15:17:17 2010 +0100 @@ -0,0 +1,9 @@ +require "jslex" + +local stream = jslex.new_stream(io.open(arg[1])); + +local token_type, token_value = stream.get_token(); +while token_type do + print("Token:", token_type, token_value); + token_type, token_value = stream.get_token(); +end