lua-users home
lua-l archive

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


Petite Abeille <petite.abeille <at> gmail.com> writes:

> Hmmm... HyperLua compiler? What's that? Inquisitive mind want to  
> know! :D


I have uploaded complete sources to luaforge (it looks like github is
under DDoS attack right now). You can take a look at *.hlua sources
and attempt to play with hluac.jar - but it is totally undocumented.

In brief, Hyperlua is a source-to-source translator from some
"enriched" Lua to a "plain" Lua. Resulted plain lua files require no
runtime support at all. Hyperlua is 100% back compatible to Lua 5.1.

Main feature of Hyperlua is an optimizing pattern matching compiler,
heavily influenced by Sestoft's "ML pattern match compilation and
partial evaluation" (http://www.itu.dk/~sestoft/papers/match.ps.gz).

Also it adds syntax for cons-list (x::[] [1,2,3]), thunks, can
introduce infix and prefix operators, combined assignments (+=, or=)
etc.

You can get some notion about it from zpp.hlua and
luapp.hlua. Compiler requires Scala's and Rat's runtimes (included).

Cheers,
    Andrew

http://luaforge.net/frs/download.php/4249/luapp-src-0.7.zip