Re: [ANN] peettles - low level windows file format parsing

  • From: William Adams <william_a_adams@xxxxxxxxxxx>
  • To: Gisle Vanem <dmarc-noreply@xxxxxxxxxxxxx>, "luajit@xxxxxxxxxxxxx" <luajit@xxxxxxxxxxxxx>
  • Date: Tue, 14 Aug 2018 17:23:33 +0000

That's a good use case, and similar to what I am striving for.  If you look in 
the 'testy' directory, you'll also see 'fun.lua'.  This is the functional 
programming module done by Roman Tsisyk.  For my purposes, I'll be stringing 
together little predicates in lua, because my searches are a bit more involved 
than typical string matching.

It should be relatively easy to do what you're indicating though.  Perhaps just 
making a pretty printer that does the same thing nm does?

Pretty printers are pretty easy to formulate with this system.

-- William

From: luajit-bounce@xxxxxxxxxxxxx <luajit-bounce@xxxxxxxxxxxxx> on behalf of 
Gisle Vanem <dmarc-noreply@xxxxxxxxxxxxx>
Sent: Tuesday, August 14, 2018 9:57 AM
To: luajit@xxxxxxxxxxxxx
Subject: Re: [ANN] peettles - low level windows file format parsing 
 
William Adams wrote:

This is similar to my previously announced pereader, but goes further in 
multiple directions.

https://github.com/wiladams/peettles

Download it, tried it. Pretty cool after 5 min. of
playing with 'pdb2lua.lua' and 'lib2lua.lua'.

But how to do the equivalent of this (with GNU tools):
   nm $(OBJECTS) | grep ' T _foo' or
   nm $(OBJECTS) | grep -e ' [BDCGR] _bar'  (for DATA)

I use things like this for creating .def-files in
several GNU-makefiles. It could be handy to use Lua/LuaJit
instead.

-- 
--gv

Other related posts: