Ignore:
Timestamp:
Apr 25, 2011, 1:37:41 AM (8 years ago)
Author:
ksherdy
Message:

Minor template fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/RE2PBS/prototype_template.py

    r1149 r1154  
    1313#
    1414#----------------------------------------------------------------------------
     15
     16import sys
     17import bitutil
    1518
    1619u8data = ""
     
    3033@lex_strms
    3134
    32 def classify_bytes(bit):
     35def classify_bytes(basis_bits):
    3336        lex = Lex()
    3437
     
    3639        return lex
    3740
    38 def demo(u8data):
     41def demo(u8data, lex):
    3942        global lgth
    4043        lgth = len(u8data)
     
    5659        (bits, EOF_mask) = bitutil.transpose_streams(u8data)
    5760       
     61        basis_bits = Basis_bits()
    5862        basis_bits.bit_0 = bits[0]
    5963        basis_bits.bit_1 = bits[1]
Note: See TracChangeset for help on using the changeset viewer.