lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Take a look at blex.lua in the LuaParse distro for a fully-worked
example of pattern-based case-switching (function table style).

R.

On 1-Sep-04, at 12:36 PM, Mark Hamburg wrote:

The switch returns case and default tests approach also suggests other
interesting variants like a string switch that takes patterns for the cases.

Mark