Changeset 3246 for proto


Ignore:
Timestamp:
May 31, 2013, 12:29:07 PM (6 years ago)
Author:
cameron
Message:

Determine maximum 1 match per line output.matches bitstream

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/RE/input/re_pablo

    r3005 r3246  
    4040def Demo(lex, output):
    4141@pbs_code
    42         output.matches = m0
     42        output.matches = 0
     43        all_matches = m0
     44        if all_matches:
     45                # Find the last match on each line and filter out all others
     46                output.matches = pablo.MatchStar(all_matches, ~lex.LF) & lex.LF
    4347       
    4448def Main(u8data, lex, output):
Note: See TracChangeset for help on using the changeset viewer.