Ignore:
Timestamp:
Nov 16, 2010, 7:42:01 PM (9 years ago)
Author:
ksherdy
Message:

Demo logic to validate JSON atoms.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/JSON/byteclass.py

    r702 r713  
    227227        Lex.s = (temp27 & temp73);
    228228        Lex.n = (temp49 & temp39);
    229         temp74 = (Lex.Comma | Lex.RCurlyBrace);
    230         temp75 = (temp74 | Lex.RSquareBracket);
    231         temp76 = (temp75 | Ctrl.CR);
    232         temp77 = (temp76 | Ctrl.LF);
    233         temp78 = (temp77 | Ctrl.HT);
    234         Lex.ValueFollowSet = (temp78 | Ctrl.SP);
    235         temp79 = (temp75 | Lex.Colon);
    236         temp80 = (temp79 | Ctrl.CR);
    237         temp81 = (temp80 | Ctrl.LF);
    238         temp82 = (temp81 | Ctrl.HT);
    239         Lex.StringFollowSet = (temp82 | Ctrl.SP);
     229        temp74 = (temp26 & bit[3]);
     230        temp75 = (temp29 & temp74);
     231        temp76 = (temp75 | Lex.Minus);
     232        temp77 = (temp76 | Lex.Digit0_9);
     233        temp78 = (temp77 | Lex.DQuote);
     234        temp79 = (temp78 | Lex.t);
     235        temp80 = (temp79 | Lex.f);
     236        Lex.ValueStartsSet = (temp80 | Lex.n);
     237        temp81 = (Lex.RSquareBracket | Lex.Comma);
     238        Lex.ValueFollowsSet = (temp81 | Lex.RCurlyBrace);
    240239        return (u8,Lex,Ctrl)
Note: See TracChangeset for help on using the changeset viewer.