source: proto/pabloj/trunk/input/test/s2k/statements/while/while4.s2k @ 3684

Last change on this file since 3684 was 3684, checked in by ksherdy, 5 years ago

Renamed test files for s2k.

File size: 420 bytes
Line 
1function void Function(struct TagCallouts tagCallouts, struct Lex lex) {       
2
3        stream<1> starts_accum = 0;
4        stream<1> ends_accum = 0;       
5        stream<1> cursor = pablo.ScanToFirst(lex.opener);
6       
7        while (cursor) {
8                starts_accum |= cursor;
9                cursor = pablo.ScanTo(cursor, lex.marker &~ cursor);
10                ends_accum |= cursor;
11                cursor = pablo.ScanTo(cursor, (lex.marker | lex.terminator) &~ cursor);
12                cursor = cursor & lex.marker;
13        }
14};
Note: See TracBrowser for help on using the repository browser.