Mercurial > jwe > qt-gui-with-push-parser
view interpreter.h @ 6:1b575145197e
interpreter is now a class instead of a namespace with functions
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 23 May 2019 07:41:18 -0400 |
parents | 0e154787183d |
children | 04867eba6428 |
line wrap: on
line source
#if ! defined (calc_interpreter_h) #define calc_interpreter_h 1 namespace calc { class interpreter { public: static interpreter *the_interpreter; interpreter (void); interpreter (const interpreter&) = delete; interpreter& operator = (const interpreter&) = delete; ~interpreter (void); int parse_and_execute (const std::string& line); void emit_error (const char *msg); void emit_result (double value); private: }; } #endif