 function. Here is an example interactive Lua session doing this:</p>

    <pre><code>$&gt; lua
Lua 5.1.4  Copyright (C) 1994-2008 Lua.org, PUC-Rio
&gt; lexer_path = '/home/mitchell/code/scintilla/lexlua/?.lua'
&gt; package.path = package.path..';'..lexer_path
&gt; c = require('lexer').load('ansi_c')
&gt; tokens = c:lex('int void main() { return 0; }')
&gt; for i = 1, #tokens, 2 do print(tokens[i], tokens[i+1]) end
type    4
ansi_c_whitespace   5
type    9
ansi_c_whitespace   10
identifier  14
operator    1