2019-06-04 20:45:06 -07:00
|
|
|
#include "ast.hpp"
|
|
|
|
#include "pattern.hpp"
|
|
|
|
#include "parser.hpp"
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
try {
|
2019-06-05 21:16:40 -07:00
|
|
|
lily::parse(
|
|
|
|
"data Bool = { True, False }\n"
|
|
|
|
"data Color = { Red, Black }\n"
|
|
|
|
"data IntList = { Nil, Cons(Int, Int) }\n"
|
|
|
|
"defn add x y = { x + y }");
|
2019-06-04 20:45:06 -07:00
|
|
|
} catch(lily::error& e) {
|
|
|
|
std::cout << e.message << std::endl;
|
|
|
|
}
|
|
|
|
}
|