Changeset 2267 for proto


Ignore:
Timestamp:
Aug 6, 2012, 1:44:06 PM (7 years ago)
Author:
cameron
Message:

Set up for while optimization in Parse_CtCDPI

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/parabix2/parabix2_pablo.py

    r2260 r2267  
    387387                # Common processing
    388388                CtCDPI_Cursor = PI_Cursor | CD_Cursor | Ct_Cursor
    389                 CtCDPI_Cursor = pablo.ScanTo(CtCDPI_Cursor, CtCDPI_opener)     
    390389                ctCDPI_mask = pablo.InclusiveSpan(CtCDPI_starts, CtCDPI_ends)
    391390#               ctCDPI_mask |= (CtCDPI_ends - CtCDPI_starts) | CtCDPI_ends
    392391                # If any of the Comment, CDATA or PI markups are unterminated, it is an error.
    393392                pablo.assert_0(pablo.atEOF(ctCDPI_mask), "Error in comment, CDATA or processing instruction syntax")
     393                CtCDPI_Cursor = pablo.ScanTo(CtCDPI_Cursor, CtCDPI_opener)     
    394394               
    395395        check_streams.misc_mask = (lex.WS | lex.LAngle | (pablo.Advance(ctCDPI_Callouts.Ct_ends | ctCDPI_Callouts.PI_ends)  -(ctCDPI_Callouts.Ct_starts | ctCDPI_Callouts.PI_starts)) | CtCDPI_starts) & EOF_mask
Note: See TracChangeset for help on using the changeset viewer.