ometa Test { prog = end | (~(')' | empty))+:s -> [s] } Test.matchAll('((*))(*)', 'prog')