-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.java
More file actions
30 lines (23 loc) · 734 Bytes
/
Copy pathMain.java
File metadata and controls
30 lines (23 loc) · 734 Bytes
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
26
27
28
package com.company;
import java.util.ArrayList;
import java.util.List;
import java.util.function.Function;
import static com.company.Tuple.*;
import static com.company.Utils.*;
import static com.company.Parser.*;
public class Main {
public static void main(String[] args) {
// write your code here
print(t(1,2));
Parser<String> p0 = _str("aac");
Parser<FList<String>> p4 = many(p0);
String s = "aacaacaacaacaacaacaacaad";
Text t = new Text(s);
Either<ParseError,ParseResults<FList<String>>> results = test(t,p4);
print(results.toString());
print("Finished...");
}
static <T> void print(T statements){
System.out.println(statements);
}
}