Ignore:
Timestamp:
Mar 24, 2013, 10:32:31 PM (6 years ago)
Author:
ksherdy
Message:

Added pablo.Mask(fw,value) builtin.

Location:
proto/pabloj/trunk/input/test/pabloS
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • proto/pabloj/trunk/input/test/pabloS/py2pablo/parabix2_pablo.pablos

    r2834 r2972  
    217217    pablo.assert_0(pablo.inFile(lex_error), "Error: illegal character");
    218218    u8.unibyte = (~ basis_bits.bit_0);
    219     u8.suffix = 0;
    220     var stream<1> u8_error = 0;
    221     var stream<1> u8_FFFE_FFFF = 0;
    222     var stream<1> u8anyscope = 0;
     219    u8.suffix = pablo.Mask(1,0);
     220    var stream<1> u8_error;
     221    var stream<1> u8_FFFE_FFFF;
     222    var stream<1> u8anyscope;
    223223    if (basis_bits.bit_0) {
    224224        u8.prefix = (basis_bits.bit_0 & basis_bits.bit_1);
     
    279279
    280280function void Parse_CtCDPI(struct Lex lex, struct Marker marker, struct CtCDPI_Callouts ctCDPI_Callouts, struct Check_streams check_streams) {
    281     ctCDPI_Callouts.Ct_starts = 0;
    282     ctCDPI_Callouts.Ct_ends = 0;
    283     ctCDPI_Callouts.CD_starts = 0;
    284     ctCDPI_Callouts.CD_ends = 0;
    285     ctCDPI_Callouts.PI_starts = 0;
    286     ctCDPI_Callouts.PI_name_starts = 0;
    287     ctCDPI_Callouts.PI_name_ends = 0;
    288     ctCDPI_Callouts.PI_ends = 0;
    289     var stream<1> CtCDPI_starts = 0;
    290     var stream<1> CtCDPI_ends = 0;
    291     var stream<1> ctCDPI_mask = 0;
     281    ctCDPI_Callouts.Ct_starts = pablo.Mask(1,0);
     282    ctCDPI_Callouts.Ct_ends = pablo.Mask(1,0);
     283    ctCDPI_Callouts.CD_starts = pablo.Mask(1,0);
     284    ctCDPI_Callouts.CD_ends = pablo.Mask(1,0);
     285    ctCDPI_Callouts.PI_starts = pablo.Mask(1,0);
     286    ctCDPI_Callouts.PI_name_starts = pablo.Mask(1,0);
     287    ctCDPI_Callouts.PI_name_ends = pablo.Mask(1,0);
     288    ctCDPI_Callouts.PI_ends = pablo.Mask(1,0);
     289    var stream<1> CtCDPI_starts;
     290    var stream<1> CtCDPI_ends;
     291    var stream<1> ctCDPI_mask;
    292292    var stream<1> v = (lex.LAngle | lex.Hyphen);
    293293    var stream<1> w = (lex.Hyphen | lex.QMark);
     
    298298    var stream<1> CtCD_opener = (LAngle_scope & lex.Exclam);
    299299    var stream<1> CtCDPI_opener = (PI_opener | CtCD_opener);
    300     var stream<1> CD_closer = 0;
     300    var stream<1> CD_closer;
    301301    var stream<1> DoubleHyphen = ((v1 & w1) & lex.Hyphen);
    302302    if (lex.RBracket) {
     
    354354
    355355function void Parse_tags(struct Lex lex, struct Marker marker, struct Tag_Callouts tag_Callouts) {
    356     var stream<1> EqExpected = 0;
    357     var stream<1> AttListEnd = 0;
     356    var stream<1> EqExpected;
     357    var stream<1> AttListEnd;
    358358    var stream<1> DQuoteDelim = (lex.DQuote | lex.LAngle);
    359359    var stream<1> SQuoteDelim = (lex.SQuote | lex.LAngle);
     
    363363    tag_Callouts.ElemName_ends = pablo.ScanThru(tag_Callouts.ElemName_starts, lex.NameScan);
    364364    var stream<1> ParseError = (tag_Callouts.ElemName_starts & tag_Callouts.ElemName_ends);
    365     tag_Callouts.AttName_starts = 0;
    366     tag_Callouts.AttName_ends = 0;
    367     tag_Callouts.AttVal_starts = 0;
    368     tag_Callouts.AttVal_ends = 0;
     365    tag_Callouts.AttName_starts = pablo.Mask(1,0);
     366    tag_Callouts.AttName_ends = pablo.Mask(1,0);
     367    tag_Callouts.AttVal_starts = pablo.Mask(1,0);
     368    tag_Callouts.AttVal_ends = pablo.Mask(1,0);
    369369    if ((tag_Callouts.ElemName_ends & lex.WS)) {
    370370        var stream<1> AfterWS = pablo.ScanThru(tag_Callouts.ElemName_ends, lex.WS);
     
    422422
    423423function void Parse_refs(struct Lex lex, struct Marker marker, struct Ref_Callouts ref_Callouts) {
    424     ref_Callouts.GenRef_starts = 0;
    425     ref_Callouts.GenRef_ends = 0;
    426     ref_Callouts.DecRef_starts = 0;
    427     ref_Callouts.DecRef_ends = 0;
    428     ref_Callouts.HexRef_starts = 0;
    429     ref_Callouts.HexRef_ends = 0;
    430     var stream<1> ref_error = 0;
     424    ref_Callouts.GenRef_starts = pablo.Mask(1,0);
     425    ref_Callouts.GenRef_ends = pablo.Mask(1,0);
     426    ref_Callouts.DecRef_starts = pablo.Mask(1,0);
     427    ref_Callouts.DecRef_ends = pablo.Mask(1,0);
     428    ref_Callouts.HexRef_starts = pablo.Mask(1,0);
     429    ref_Callouts.HexRef_ends = pablo.Mask(1,0);
     430    var stream<1> ref_error;
    431431    if (marker.Ref_opener) {
    432432        var stream<1> Ref_scope = pablo.Advance(marker.Ref_opener);
  • proto/pabloj/trunk/input/test/pabloS/statements/while/while1.pablos

    r2834 r2972  
    11function void While() {
    2        
     2               
    33        var stream cursor = 1;
    44       
Note: See TracChangeset for help on using the changeset viewer.