Choice of processor

Philip Taylor P.Taylor at Hellenic-Institute.Uk
Wed Mar 5 13:25:51 CET 2025


On 05/03/2025 12:02, Joseph Wright wrote:
> Indeed. What I've done is directly access the table of Lua functions (t
> = lua.get_functions_table()) then added as index position 1 the
> anonymous Lua function that will implement \strcmp. \luadef then links
> the TeX token \strcmp to the Lua code at index position 1. The LuaTeX
> manual covers this with some 'health warnings'. 
Thank you — (almost) all understood !  But how about the "12" in the 
following ?  Is that a TeX catcode (for "other") ?

>   local minus_tok = token.new(string.byte('-'), 12)
>   local zero_tok = token.new(string.byte('0'), 12)
>   local one_tok = token.new(string.byte('1'), 12) 
-- 
/** Phil./
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/texhax/attachments/20250305/992002b1/attachment.htm>


More information about the texhax mailing list.