Re: python bytecode grammar

2005-06-26 Thread Bengt Richter
On Fri, 10 Jun 2005 16:46:32 +0200, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: >M1st0 wrote: >> 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 "pa

Re: python bytecode grammar

2005-06-14 Thread Magnus Lycka
M1st0 wrote: > Ops yes is BNF :P Bacus Normal Form if I am not wrong... Backus Naur Form. John Backus and Peter Naur first used it to describe ALGOL around 1960. See e.g. http://cui.unige.ch/db-research/Enseignement/analyseinfo/AboutBNF.html -- http://mail.python.org/mailman/listinfo/python-lis

Re: python bytecode grammar

2005-06-12 Thread Peter Dembinski
"Terry Reedy" <[EMAIL PROTECTED]> writes: > "Peter Dembinski" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> "Terry Reedy" <[EMAIL PROTECTED]> writes: >>> I believe the top-level production is something like >>> BYTECODE := (OPCODE ARGS)* >> >> ROTFL :) > > Glad to make your day

Re: python bytecode grammar

2005-06-12 Thread Terry Reedy
"Peter Dembinski" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "Terry Reedy" <[EMAIL PROTECTED]> writes: >> I believe the top-level production is something like >> BYTECODE := (OPCODE ARGS)* > > ROTFL :) Glad to make your day ;-) I am aware that since ARGS depends on OPCODE, th

Re: python bytecode grammar

2005-06-12 Thread Peter Dembinski
"Terry Reedy" <[EMAIL PROTECTED]> writes: > "M1st0" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> where I can find the grammar of python bytecode ? ( better if is in >> BCF > > I believe the top-level production is something like > BYTECODE := (OPCODE ARGS)* ROTFL :) -- http:

Re: python bytecode grammar

2005-06-10 Thread Terry Reedy
"M1st0" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > where I can find the grammar of python bytecode ? ( better if is in BCF I believe the top-level production is something like BYTECODE := (OPCODE ARGS)* See the documentation for the dis module for symbolic opcodes and corresp

Re: python bytecode grammar

2005-06-10 Thread M1st0
Ok I tried :). -- http://mail.python.org/mailman/listinfo/python-list

Re: python bytecode grammar

2005-06-10 Thread Diez B. Roggisch
M1st0 wrote: > 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 rec

Re: python bytecode grammar

2005-06-10 Thread M1st0
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

Re: python bytecode grammar

2005-06-10 Thread Diez B. Roggisch
M1st0 wrote: > where I can find the grammar of python bytecode ? ( better if is in BCF > ). There is no grammar for bytecodes - the are like assembly instructions. And what's BCF supposed to mean - BNF is a form for grammars, BCF I never heard of. And besides that: tell us what you're after, we

python bytecode grammar

2005-06-10 Thread M1st0
where I can find the grammar of python bytecode ? ( better if is in BCF ). -- http://mail.python.org/mailman/listinfo/python-list