jslextest.lua

changeset 0
b2e55f320d48
equal deleted inserted replaced
-1:000000000000 0:b2e55f320d48
1 require "jslex"
2
3 local stream = jslex.new_stream(io.open(arg[1]));
4
5 local token_type, token_value = stream.get_token();
6 while token_type do
7 print("Token:", token_type, token_value);
8 token_type, token_value = stream.get_token();
9 end

mercurial