Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

24 lines (17 sloc) 0.425 kB
@import "TDCollectionParser.j"
@import "TDAssembly.j"
@implementation TDAlternation : TDCollectionParser
{
}
+ (id)alternation
{
return [[self alloc] init];
}
- (CPSet)allMatchesFor:(CPSet)inAssemblies
{
var outAssemblies = [CPSet set];
for (var i=0, count=[subparsers count]; i<count; i++)
[outAssemblies unionSet:[subparsers[i] matchAndAssemble:inAssemblies]];
return outAssemblies;
}
@end
Jump to Line
Something went wrong with that request. Please try again.