Ignore:
Timestamp:
Apr 22, 2013, 3:01:18 PM (6 years ago)
Author:
lindanl
Message:

New comment and string parsing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/PDF/cb_template.cpp

    r2957 r3066  
    364364    for (int i = 0; i < BLOCKS-1; i++){
    365365      parse_Escaped.do_block(lex[i], parity, escape_Callouts, out_Callouts, lex[i+1]);
    366       parse_Comment.do_block(lex[i], escape_Callouts, marker[i], out_Callouts);
    367       parse_String.do_block(escape_Callouts, marker[i], out_Callouts);
     366      match_Parens_With_Comments.do_block(lex[i], escape_Callouts, marker[i], out_Callouts);
     367//       parse_Comment.do_block(lex[i], escape_Callouts, marker[i], out_Callouts);
     368//       parse_String.do_block(escape_Callouts, marker[i], out_Callouts);
    368369      parse_HexStrings.do_block(lex[i], marker[i], out_Callouts);
    369370      parse_Names.do_block(lex[i], marker[i], out_Callouts, lex[i+1]);
     
    378379    classify_bytes.do_block(basis_bits[0], lex[0]);   
    379380    parse_Escaped.do_block(lex[BLOCKS-1], parity, escape_Callouts, out_Callouts, lex[0]);
    380     parse_Comment.do_block(lex[BLOCKS-1], escape_Callouts, marker[BLOCKS-1], out_Callouts);
    381     parse_String.do_block(escape_Callouts, marker[BLOCKS-1], out_Callouts);
     381    match_Parens_With_Comments.do_block(lex[BLOCKS-1], escape_Callouts, marker[BLOCKS-1], out_Callouts);
     382//     parse_Comment.do_block(lex[BLOCKS-1], escape_Callouts, marker[BLOCKS-1], out_Callouts);
     383//     parse_String.do_block(escape_Callouts, marker[BLOCKS-1], out_Callouts);
    382384    parse_HexStrings.do_block(lex[BLOCKS-1], marker[BLOCKS-1], out_Callouts);
    383385    parse_Names.do_block(lex[BLOCKS-1], marker[BLOCKS-1], out_Callouts, lex[0]);
     
    408410    for (int i = 0; i < BLOCKS-1; i++){
    409411      parse_Escaped.do_block(lex[i], parity, escape_Callouts, out_Callouts, lex[i+1]);
    410       parse_Comment.do_block(lex[i], escape_Callouts, marker[i], out_Callouts);
    411       parse_String.do_block(escape_Callouts, marker[i], out_Callouts);
     412      match_Parens_With_Comments.do_block(lex[i], escape_Callouts, marker[i], out_Callouts);
     413//       parse_Comment.do_block(lex[i], escape_Callouts, marker[i], out_Callouts);
     414//       parse_String.do_block(escape_Callouts, marker[i], out_Callouts);
    412415      parse_HexStrings.do_block(lex[i], marker[i], out_Callouts);
    413416      parse_Names.do_block(lex[i], marker[i], out_Callouts, lex[i+1]);
     
    423426    EOF_mask = bitblock::srl(simd<1>::constant<1>(), convert(BLOCK_SIZE-chars_avail));
    424427    parse_Escaped.do_final_block(lex[BLOCKS-1], parity, escape_Callouts, out_Callouts, EOF_mask);
    425     parse_Comment.do_final_block(lex[BLOCKS-1], escape_Callouts, marker[BLOCKS-1], out_Callouts, EOF_mask);
    426     parse_String.do_final_block(escape_Callouts, marker[BLOCKS-1], out_Callouts, EOF_mask);
     428    match_Parens_With_Comments.do_final_block(lex[BLOCKS-1], escape_Callouts, marker[BLOCKS-1], out_Callouts, EOF_mask);
     429//     parse_Comment.do_final_block(lex[BLOCKS-1], escape_Callouts, marker[BLOCKS-1], out_Callouts, EOF_mask);
     430//     parse_String.do_final_block(escape_Callouts, marker[BLOCKS-1], out_Callouts, EOF_mask);
    427431    parse_HexStrings.do_final_block(lex[BLOCKS-1], marker[BLOCKS-1], out_Callouts, EOF_mask);
    428432    parse_Names.do_final_block(lex[BLOCKS-1], marker[BLOCKS-1], out_Callouts, EOF_mask);
     
    443447//       printf("%i,%i\n",numbers[i],dec_pl[i]);
    444448/*   
    445     for(int i=0; i<10;i++){
     449    for(int i=0; i<100;i++){
    446450      if(tokenArray[i].type==str_token){
    447451        printf("String: ");
     
    472476          printf("%c",tokenArray[i].token.char_ptr[j]);
    473477        printf("\n");
    474       }
    475 
    476     }*/
     478      }*/
     479
     480    }
    477481     
    478482
Note: See TracChangeset for help on using the changeset viewer.