Ignore:
Timestamp:
Nov 30, 2010, 9:40:16 PM (9 years ago)
Author:
ksherdy
Message:

Update parity_mask argument name to bitblock_parity_mask to avoid confusion.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/JSON/json_prototype.py

    r739 r744  
    4949def parse_escape(Lex, EOF_mask):
    5050        r"""
     51        We translate stream abtraction logic to native block-by-block implementation logic.
     52       
    5153        Marks escaped characters.
    5254        Does not mark escaped '\' characters.
    5355        '\' characters are either escaped and unmarked or the following character in an odd length run is marked.
    5456        """
    55         odd = simd_const_4('a',EOF_mask)
    56         even = simd_const_4('5',EOF_mask)
     57        odd = simd_const_4('a',EOF_mask)  # little endian
     58        even = simd_const_4('5',EOF_mask) # little endian               
    5759       
    5860        start = Lex.RSolidus &~ bitutil.Advance(Lex.RSolidus)
     
    8688def parallel_prefix_parity(strm):
    8789        r"""
    88         Translate to library function.
     90        We translate stream abtraction logic to native block-by-block implementation logic.
    8991       
    9092        x y | x XOR y
     
    622624        u8data = bitutil.readfile(sys.argv[1])
    623625
    624 #       demo_parse_escape(u8data)
    625         demo_parallel_prefix_parity(u8data)
     626        demo_parse_escape(u8data)
     627#       demo_parallel_prefix_parity(u8data)
    626628#       demo_atom_starts(u8data)
    627629#       demo_validate_number(u8data)
Note: See TracChangeset for help on using the changeset viewer.