Jump to content

Compiler/lexical analyzer: Difference between revisions

m
(Added Lua versions.)
Line 4,928:
</lang>
===Using only standard libraries===
This version replaces the <i>lpeg_token_finder</i> module of the LPeg version with this <i>basic_token_finder</i> module, altering the <i>require</i> expression near the top of the <i>lexer</i> module accordingly. Tested with Lua 5.3.5. (Note that <i>select</i> is a standard function as of Lua 5.2.)
 
<lang lua>-- module basic_token_finder
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.