[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Four paradigms for programming Lua apllications
- From: Gavin Wraith <gavin@...>
- Date: Mon, 31 Mar 2014 09:59:09 +0100
In message <CABcj=tkueH+yCnCe5MxfDr8gvdw49KMAXX3o8VVHPDfPPxDOCg@mail.g
Dirk Laurie <firstname.lastname@example.org> wrote:
> You're writing an application in Lua. What are you presenting to the
> intended user?
> 1. A standalone in "pure" Lua.
> 2. A precompiled standalone.
> 3. A module.
> 4. A console application.
And with RISC OS
5. A StrongED script. StrongED is a popular texteditor (and
disassembler and much else). Drag the script onto the
appropriate icon of a StrongED window and the contents of the
window will be replaced by the output of the script. The
value of arg in the script can be treated as the pathname
of a temporary file containing the original text displayed in
So, for example,
text = io.read "*all"
io.input ( )
io.write (text:gsub ("%b<>", ""))
will strip all tags from marked up text.