Changeset 674


Ignore:
Timestamp:
Oct 21, 2010, 2:16:54 PM (9 years ago)
Author:
ksherdy
Message:

Update def comments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/JSON/json_prototype.py

    r672 r674  
    8888                              ('Errors', bitutil.bitstream2string(Errors, lgth))])             
    8989        return Errors
    90         """     
    91         For example, 00 is not reported as an error case, but -- is reported as an error case.
    9290       
    93         RFC 4627 - JavaScript Object Notation (JSON) 
    94         RFC 5234 - Augmented BNF for Syntax Specifications: ABNF
    95        
    96         number = [ minus ] int [ frac ] [ exp ]
    97         decimal-point = %x2E       ; .
    98         digit1-9 = %x31-39         ; 1-9
    99         e = %x65 / %x45            ; e E
    100         exp = e [ minus / plus ] 1*DIGIT
    101         frac = decimal-point 1*DIGIT
    102         int = zero / ( digit1-9 *DIGIT )
    103         minus = %x2D               ; -
    104         plus = %x2B                ; +
    105         zero = %x30                ; 0 
    106         """     
    10791def demo_validate_number(data):
    10892        """     
Note: See TracChangeset for help on using the changeset viewer.