lua-users home
lua-l archive

Re: Narcissus in Lua (Javascript parser)

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


On Oct 15, 2010, at 10:29 PM, Luiz Henrique de Figueiredo wrote:
> H('html',nil,
> H('head',nil, H('title',nil, 'page title')),
> H('body',nil,
> H('div', {id='header',class='banner'},
> H('p',nil, 'header div')),
> H('div', {id='main'},
> H('p',nil, 'main part'),
> H('img', {src='lolcats/purrr.jpg', alt='lol'}),
> H('a', {href='somewhere/else.html'}, 'lets go')),
> H('div',{id='footer'}, H('p',nil,'the end'))))
Alternative syntax:
html{ head{ title{ type = 'bla', 'haha' } }, body{} }
But, as Javier mentioned, not that anyone would want to use such concoction in practice :)

AltStyle によって変換されたページ (->オリジナル) /