Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gtest-593.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a5e53f26c36cd31617d8326aa7523676b160233e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
using System;

public delegate Tuple<D1, DR1> Parser<D1, DR1> (D1 stream);

static class Combinator
{
	public static Parser<L1, LR1> Lazy<L1, LR1> (Func<Parser<L1, LR1>> func)
	{
		return null;
	}

	public static Parser<C1, CR1> Choice<C1, CR1> (Parser<C1, CR1> parsers)
	{
		Parser<C1, CR1> tail = null;

		Lazy (() => Choice (tail));

		return null;
	}

	public static void Main ()
	{
		Choice ((int l) => Tuple.Create (1, 2));
	}
}