[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Lua DSL for configuration
- From: HyperHacker <hyperhacker@...>
- Date: Tue, 27 Apr 2010 21:11:58 -0600
I can't see how that would work. You're assigning "Hello" to either a
string or a function call; neither are valid.
On Tue, Apr 27, 2010 at 20:55, Joshua Jensen <email@example.com> wrote:
> There is a configuration file I deal with that has a syntax like so:
> VARIABLE "MyVar" = "Hello"
> I thought that, perhaps, Lua could read it directly. Having a function
> called VARIABLE that works with Lua's simplified single parameter string
> syntax will solve the VARIABLE "MyVar" portion:
> function VARIABLE(name)
> At this point, I am uncertain what I would have VARIABLE() return that would
> allow me to pick up the right side (= "Hello") of the configuration line.
> Any thoughts? Is it possible?
Sent from my toaster.