abacus: parse standard output and output result

This commit is contained in:
Bruno BELANYI 2021-08-22 14:37:49 +02:00
parent 26055c5a3f
commit b50750009b
2 changed files with 10 additions and 2 deletions

View file

@ -1,5 +1,9 @@
#include <iostream> #include "parser-driver.hh" // FIXME: I would like `parse/parser-driver.hh` path instead...
int main() { int main() {
std::cout << "Hello World!\n"; abacus::parse::ParserDriver driver{};
driver.parse("-");
std::cout << driver.result();
} }

View file

@ -8,4 +8,8 @@ subdir('parse')
abacus = executable( abacus = executable(
'abacus', 'abacus',
sources: abacus_sources, sources: abacus_sources,
dependencies: [
bignum,
parse,
],
) )