abacus: parse standard output and output result
This commit is contained in:
parent
26055c5a3f
commit
b50750009b
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,4 +8,8 @@ subdir('parse')
|
||||||
abacus = executable(
|
abacus = executable(
|
||||||
'abacus',
|
'abacus',
|
||||||
sources: abacus_sources,
|
sources: abacus_sources,
|
||||||
|
dependencies: [
|
||||||
|
bignum,
|
||||||
|
parse,
|
||||||
|
],
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue