1 ----------------------------------------------------------------------
2 -- Metalua: $Id: mll.lua,v 1.3 2006/11/15 09:07:50 fab13n Exp $
4 -- Summary: Source file lexer. ~~Currently only works on strings.
5 -- Some API refactoring is needed.
7 ----------------------------------------------------------------------
9 -- Copyright (c) 2006-2007, Fabien Fleutot <metalua@gmail.com>.
11 -- This software is released under the MIT Licence, see licence.txt
14 ----------------------------------------------------------------------
16 module ("mlp", package.seeall)
20 local mlp_lexer = lexer.lexer:clone()
23 "and", "break", "do", "else", "elseif",
24 "end", "false", "for", "function", "if",
25 "in", "local", "nil", "not", "or", "repeat",
26 "return", "then", "true", "until", "while",
27 "...", "..", "==", ">=", "<=", "~=",
30 for w in values(keywords) do mlp_lexer:add(w) end