12 lines
220 B
C++
12 lines
220 B
C++
|
#include "ast.hpp"
|
||
|
#include "pattern.hpp"
|
||
|
#include "parser.hpp"
|
||
|
|
||
|
int main() {
|
||
|
try {
|
||
|
lily::parse("defn add x y = { x + y }");
|
||
|
} catch(lily::error& e) {
|
||
|
std::cout << e.message << std::endl;
|
||
|
}
|
||
|
}
|