[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: ANN: Serpent: Lua serializer and pretty printer
- From: Paul K <paulclinger@...>
- Date: Wed, 6 Jun 2012 09:02:26 -0700
Hi Dirk,
> It runs under Lua 5.2 but does not treat "goto" as a keyword.
Right; thank you for reminding me that the list has changed in Lua
5.2. Fixed in git.
Paul.
On Wed, Jun 6, 2012 at 6:51 AM, Dirk Laurie <dirk.laurie@gmail.com> wrote:
> 2012/6/6 Paul K <paulclinger@yahoo.com>:
>> Yes, yet another serializer and pretty printer. I carefully studied
>> existing implementations and described my rationale and examples here:
>> http://notebook.kulchenko.com/programming/serpent-lua-serializer-pretty-printer.
>>
>
> Very nice. I've been using Lua for 18 months but Serpent taught me
> something I never quite realized before: a "long comment" can
> be shorter than a "short comment".
>
> --[[ Initialize ]] x=2
> --[[ Newton iteration ]] repeat local y=x; x=(x+2/x)/2
> --[[ Convergence test ]] until x>=y
>
> It runs under Lua 5.2 but does not treat "goto" as a keyword.
>