res is the value used to resume the coroutine.Įlseif (tp = "string") then - Or search up to some special pattern: Create a plain token iterator from a string. = true = true = true = true = true = true = true = true = true = true = true = true = true = true = true = true = true = true = true = true = true = true = true = true = true = true = true = true = true = true = true = true = true = true = true = true = true = true = true = true = true = true = true = true = true = true = true = true = true = true = true Local SCOMMENT2 = "^%-%-.-.*" -Incompleted Singleline-Comment Local SCOMMENT1 = "^%-%-.-\n" -Completed Singleline-Comment Local MCOMMENT2 = "^%-%-%[%[.-.*" -Incompleted Multiline-Comment Local MCOMMENT1 = "^%-%-%%1%]" -Completed Multiline-Comment Local STRING6 = "^%[%[.-.*" -Incompleted Multiline-String Local STRING5 = "^%%1%]" -Multiline-String Local STRING4 = "^().-.*" -Incompleted String Local yield, wrap = coroutine.yield, coroutine.wrap Like "+" will simply return "+" as the token. Other tokens that don't fall into the above categories The 'scan' function returns a token iterator: Tieske - Penlight lexer contributerīoatbomber - Roblox port, optimizations, and bug fixes Stevedonovan - Original Penlight lexer author This is a heavily modified and Roblox-optimized version of Lexical scanner for creating a sequence of tokens from Lua source code.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |