No subject


Fri Jun 10 13:55:02 EDT 2005


#! rnews 1443
Newsgroups: comp.lang.python
Path: news.xs4all.nl!newsspool.news.xs4all.nl!transit.news.xs4all.nl!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp.abs.net!attws2!ip.att.net!NetNews1!xyzzy!nntp
From: Harry George <harry.g.george at boeing.com>
Subject: Re: python bytecode grammar
X-Nntp-Posting-Host: cola2.ca.boeing.com
Content-Type: text/plain; charset=us-ascii
Message-ID: <xqxaclyazj4.fsf at cola2.ca.boeing.com>
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4
Lines: 29
Sender: hgg9140 at cola2.ca.boeing.com
Organization: The Boeing Company
References: <1118406741.403982.319720 at g44g2000cwa.googlegroups.com> <d8c22k$8db$00$1 at news.t-online.com> <1118408680.008103.203670 at g49g2000cwa.googlegroups.com>
Mime-Version: 1.0
Date: Fri, 10 Jun 2005 17:32:15 GMT
Xref: news.xs4all.nl comp.lang.python:381172

"M1st0" <mistobaan at gmail.com> writes:

> Ops yes is BNF :P Bacus Normal Form if I am not wrong...
> 
> However......
> 
> I'am tryng to recognizing patterns in a bytecoded file in orderd to
> optimize...
> 
> But I would like to "parse"  i.e reconstruct it in something like a
> tree..
> in order to apply rules on a tree recursively.
> 
> I have seen  compile.c in the Python dist...
> 

I've never looked, but I'm assuming it is defined in the compiler and
in the interpreter, and hopefully documented elsehwere, like:
http://python.fyxm.net/peps/pep-0330.html

Related:
http://mail.python.org/pipermail/python-dev/2004-December/050542.html
http://search.cpan.org/search?query=python%3A%3Abytecode&mode=all


-- 
harry.g.george at boeing.com
6-6M21 BCA CompArch Design Engineering
Phone: (425) 294-4718



More information about the Python-list mailing list