]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
codeparser: add module for parsing shell/python
authorRichard Purdie <rpurdie@linux.intel.com>
Mon, 2 Aug 2010 09:20:20 +0000 (10:20 +0100)
committerChris Larson <chris_larson@mentor.com>
Thu, 30 Dec 2010 06:51:07 +0000 (23:51 -0700)
commit4318da793a1b5008d7c122e5dac414d5c652a57d
treebfd69fccff1b2183cb08e86ba332ae9fa5fdf55c
parentf51f6f8928145b41770c0322c901ab7c3043bc0e
codeparser: add module for parsing shell/python

This commit is derived from Chris Larson's checksum work, turned into a
standalone piece of code for parsing python and shell functions.

The deindent code has been replaced with code to work around indentation
for speed. The original NodeVisitor in the ast was replaced with a faster
class walk call.

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
lib/bb/codeparser.py [new file with mode: 0644]