lua-users home
lua-l archive

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


Hello,
I have to realize a parser for a simple language to describe network
topologies.
The language is made by nodes and links between nodes, and it is
described by this document:
http://www.scribd.com/doc/54853179/59/Description (page 34 and 39,
respectively).

The grammar is quite compact, and a simple pattern matching using the classical
regular expression support in Lua might suffice to build an in-memory
representation of a topology.

I was wondering if better alternatives exist nowadays: how about the
lpeg library ? Is it appropriate ?  Are there other well-known
libraries
to facilitate this task ?


Thanks for your suggestions,
Valerio