Changeset 873


Ignore:
Timestamp:
Jan 6, 2011, 8:48:18 PM (8 years ago)
Author:
ksherdy
Message:

Update comments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/JSON/json_prototype.py

    r768 r873  
    88#----------------------------------------------------------------------------
    99#
    10 # We use python's unlimited precision integers for unbounded bit streams.
     10# We use Python's unlimited precision integers for unbounded bit streams.
    1111# This permits simple logical operations on the entire stream.
    1212# Assumption: bitstreams are little-endian (e.g., as on x86).
    1313#
     14# This Python module implements JSON functionality as a working Python
     15# prototype.
    1416#----------------------------------------------------------------------------
    1517#
     
    4143
    4244def simd_const_4(hexdigit, EOF_mask):
    43         r"""
     45        """
    4446        IDISA library function.
    4547        """
     
    4850       
    4951def parse_escape(Lex, EOF_mask):
    50         r"""
     52        """
    5153        We translate stream abtraction logic to native block-by-block implementation logic.
    5254       
    5355        Marks escaped characters.
    54         Does not mark escaped '\' characters.
    55         '\' characters are either escaped and unmarked or the following character in an odd length run is marked.
     56       
     57        Does not mark escaped characters.
     58        Escape characters are either escaped and unmarked or the following character in an odd length run is marked.
    5659        """
    5760        odd = simd_const_4('a',EOF_mask)  # little endian
     
    8790
    8891def parallel_prefix_parity(strm):
    89         r"""
     92        """
    9093        We translate stream abtraction logic to native block-by-block implementation logic.
    9194       
     
    140143
    141144def atom_starts(Lex, StringSpans):
    142         r"""
     145        """
    143146        This function returns multi-cursor start positions for each JSON value type.
    144147       
     
    205208
    206209def validate_true(TrueStarts, Lex):
    207         r"""
     210        """
    208211        RFC 4627 - JavaScript Object Notation (JSON) 
    209212       
     
    225228
    226229def validate_false(FalseStarts, Lex):
    227         r"""
     230        """
    228231        RFC 4627 - JavaScript Object Notation (JSON) 
    229232       
     
    247250
    248251def validate_null(NullStarts, Lex):
    249         r"""
     252        """
    250253        RFC 4627 - JavaScript Object Notation (JSON) 
    251254       
     
    267270
    268271def validate_number(NumberStarts, Lex, EOF_mask):
    269         r"""   
     272        """     
    270273        RFC 4627 - JavaScript Object Notation (JSON) 
    271274        RFC 5234 - Augmented BNF for Syntax Specifications: ABNF
     
    429432
    430433def validate_string(StringStarts, Lex, Ctrl, StringMask, Escape, UnescapedDQuotes):
    431         r"""
     434        """
    432435        RFC 4627 - JavaScript Object Notation (JSON) 
    433436
Note: See TracChangeset for help on using the changeset viewer.