Ignore:
Timestamp:
Nov 30, 2010, 9:40:16 PM (8 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_compilable.py

    r739 r744  
    158158        Lex.Null = (temp89 | Lex.l);
    159159
     160        # --- Start Generate String Mask ---
     161        # parse_escape() --- manual inline
     162        # Odd = simd_const_2(1)
     163        # Even = simd_const_2(2)
     164        Start = Lex.RSolidus &~ bitutil.Advance(Lex.RSolidus)
     165       
     166        EvenStart = Start & Even
     167        EvenFinal = (EvenStart + Lex.RSolidus) & ~Lex.RSolidus
     168        EvenEscape = EvenFinal & Odd
     169       
     170        OddStart = Start & Odd
     171        OddFinal = (OddStart + Lex.RSolidus) & ~Lex.RSolidus
     172        OddEscape = (OddFinal & Even)
     173
     174        Escape = (EvenEscape | OddEscape) 
     175        UnescapedDQuotes = (Lex.DQuote &~ EscapeChars)
     176       
     177        # parallel_prefix_mask() --- manual insert and bitblock logic in JSON template.c --- assume existence of ParityMask
     178       
     179        StringMask = ParityMask & bitutil.Advance(ParityMask)
     180        # --- End Generate String Mask ---
     181
     182        StringSpans = StringMask | UnescapedDQuotes
     183
    160184        return (u8,Lex,Ctrl,EOF_mask)
    161185
Note: See TracChangeset for help on using the changeset viewer.