Compiler/lexical analyzer: Difference between revisions
Content added Content deleted
(Added Lua versions.) |
|||
Line 4,928: | Line 4,928: | ||
</lang> |
</lang> |
||
===Using only standard libraries=== |
===Using only standard libraries=== |
||
This version replaces the <i>lpeg_token_finder</i> module 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.) |
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 |
<lang lua>-- module basic_token_finder |