<story><title>What can you do in 2k LOC of C?</title><url>http://www.h4ck3r.net/2011/02/02/what-can-you-do-in-2k-of-c/</url></story><parent_chain></parent_chain><comment><author>js2</author><text>&lt;p&gt;&lt;pre&gt;&lt;code&gt;  $ git show e83c5163316f89bfbde7d9ab23ca2e25604af290 --stat
  commit e83c5163316f89bfbde7d9ab23ca2e25604af290
  Author: Linus Torvalds &amp;#60;torvalds@ppc970.osdl.org&amp;#62;
  Date:   Thu Apr 7 15:13:13 2005 -0700

    Initial revision of &quot;git&quot;, the information manager from hell

   Makefile       |   40 +++++++++
   README         |  168 ++++++++++++++++++++++++++++++++++++
   cache.h        |   93 ++++++++++++++++++++
   cat-file.c     |   23 +++++
   commit-tree.c  |  172 +++++++++++++++++++++++++++++++++++++
   init-db.c      |   51 +++++++++++
   read-cache.c   |  259 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
   read-tree.c    |   43 +++++++++
   show-diff.c    |   81 ++++++++++++++++++
   update-cache.c |  248 +++++++++++++++++++++++++++++++++++++++++++++++++++++
   write-tree.c   |   66 ++++++++++++++
   11 files changed, 1244 insertions(+), 0 deletions(-)
&lt;/code&gt;&lt;/pre&gt;
:-)</text></comment>
<story><title>What can you do in 2k LOC of C?</title><url>http://www.h4ck3r.net/2011/02/02/what-can-you-do-in-2k-of-c/</url></story><parent_chain></parent_chain><comment><author>pygy_</author><text>Roberto Ierusalimschy&apos;s lpeg is around 2.4k loc of ansi C without any dependency beside libC and lua.h (needed to interface with Lua, since it&apos;s a Lua library).&lt;p&gt;It implements an efficient pattern matching system based on Parsing Expression Grammars (akin to CFGs, but without ambiguities). It consists of a Pattern/Grammar to bytecode compiler and a custom VM to interpret the result of the compiling phase.&lt;p&gt;Nice and clean.&lt;p&gt;&lt;a href=&quot;http://www.inf.puc-rio.br/~roberto/lpeg/lpeg.html&quot; rel=&quot;nofollow&quot;&gt;http://www.inf.puc-rio.br/~roberto/lpeg/lpeg.html&lt;/a&gt;&lt;p&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/Parsing_expression_grammar&quot; rel=&quot;nofollow&quot;&gt;http://en.wikipedia.org/wiki/Parsing_expression_grammar&lt;/a&gt;</text></comment>