KBD

Keith Devens .com

Friday, March 12, 2010 Flag waving
This is not The Greatest Song in the World, oh no. This is just a tribute. – Tenacious D

Tag: Lua

Parents:

Daily link icon Friday, November 21, 2008

Gema, the general purpose macro processor

Gema:

gema is a general purpose text processing utility based on the concept of pattern matching. In general, it reads an input file and copies it to an output file, while performing certain transformations to the data as specified by a set of patterns defined by the user. It can be used to do the sorts of things that are done by Unix utilities such as cpp, grep, sed, awk, or strings. It can be used as a macro processor, but it is much more general than cpp or m4 because it does not impose any particular syntax for what a macro call looks like. Unlike utilities like sed or awk, gema can deal with patterns that span multiple lines and with nested constructs. It is also distinguished by being able to use multiple sets of rules to be used in different contexts.

Another neat feature is that it has bindings to Lua that let you run arbitrary Lua code to operate on the result of a match.

I came across Gema years ago, but while I've never had the opportunity to use it for anything, I kept it in the back of my mind as an interesting project. I've been wondering how similar what it does is to Perl 6 grammars, so I've been meaning to check out Gema again, although I couldn't remember the name until just now.

Daily link icon Wednesday, February 22, 2006

  1. LuaJIT "is a Just-In-Time Compiler for Lua 5.1.", and Coco "is a small extension to get True C Coroutine semantics for Lua 5.1... True C coroutine semantics mean you can yield from a coroutine across a C call boundary and resume back to it." Lua 5.1 was just released the other day, btw.

       (0) Tags: [Lua]
  2. GameDev.net - Using Lua with C#:

    Embedding Lua into C# with LuaInterface is so easy that it's almost embarrassing.

    Rock. Very good article.

       (0) Tags: [.NET, C#, Lua]

Daily link icon Saturday, February 18, 2006

  1. ONLamp.com -- Introducing Lua (via PLNews).

       (0) Tags: [Lua, Programming]
March 2010
SunMonTueWedThuFriSat
 123456
78910111213
14151617181920
21222324252627
28293031 



RSS feed RSS feed for Keith's Weblog
Atom feed Atom feed for Keith's Weblog
Weblog archive

Generated in about 0.234s.

(Used 10 db queries)