lua-users home
lua-l archive

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


It was thus said that the Great Journeyer J. Joh once stated:
> Hello,
> 
> I'd like to use lua as a configure file in a C program.
> 
> There is a explanation about this use case [1] in PIL.
> 
> I tried to find some example for about this but didn't find any good sample
> code.
> 
> I searched lua wiki and internet without any good result.
> 
> 
> Is there any good lua or C library for my use case?

  I use Lua to read a configuration file for my blog engine [2].  Here's the
configuration file:

	https://github.com/spc476/mod_blog/blob/master/journal/blog.conf

and the code that loads it:

	https://github.com/spc476/mod_blog/blob/master/src/globals.c

  -spc

[1]	Not my footnote.

[2]	Written in C.  

	Hey, I started in 1999 and I had a choice---C or Perl.  I picked the
	least painful option.