Re: [OE-core] [PATCH 2/5] license.bbclass: Sane Parsing of licenses

2011-05-26 Thread Joshua Lock
On Wed, 2011-05-25 at 16:30 -0700, Elizabeth Flanagan wrote: This is a first pass at sane license parsing, using python abstract syntax trees. A few notes on this since ast is not generally used. I massage the LICENSE field to be more pythonesque and then create an ast. I then dump the

[OE-core] [PATCH 2/5] license.bbclass: Sane Parsing of licenses

2011-05-25 Thread Elizabeth Flanagan
This is a first pass at sane license parsing, using python abstract syntax trees. A few notes on this since ast is not generally used. I massage the LICENSE field to be more pythonesque and then create an ast. I then dump the ast and using a LicenseVisitor class, recurse through the tree,