Mercurial > jwe > qt-gui-with-push-parser
comparison tty-main.cpp @ 1:08df60a01bc1
debug flag, handle input with signal
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 20 May 2019 13:45:58 -0400 |
parents | dff751fb985c |
children | 0e154787183d |
comparison
equal
deleted
inserted
replaced
0:dff751fb985c | 1:08df60a01bc1 |
---|---|
54 | 54 |
55 void emit_result (double value) | 55 void emit_result (double value) |
56 { | 56 { |
57 std::cout << "ans = " << value << std::endl; | 57 std::cout << "ans = " << value << std::endl; |
58 } | 58 } |
59 | |
60 void emit_error (const char *msg) | |
61 { | |
62 std::cerr << "parse error: " << msg << std::endl; | |
63 } | |
59 } | 64 } |