source: proto/pabloj/branches/refactor-experimental/input/test/pabloS/statements/while/while4.pablos @ 3160

Last change on this file since 3160 was 3160, checked in by ksherdy, 6 years ago

Updated test files to sync with grammar changes.

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.