[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: ANN: Serpent: Lua serializer and pretty printer
- From: Dirk Laurie <dirk.laurie@...>
- Date: Wed, 6 Jun 2012 15:51:08 +0200
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.