Mercurial > octave
comparison libinterp/parse-tree/pt-exp.h @ 22196:dd992fd74fce
put parser, lexer, and evaluator in namespace; interpreter now owns evaluator
* oct-parse.in.yy, parse.h: Move parser classes to octave namespace.
* lex.ll, lex.h: Move lexer classes to octave namespace.
* pt-eval.h, pt-eval.cc: Move evaluator class to octave namespace.
Don't define global current evaluator pointer here.
* debug.cc, error.cc, input.cc, input.h, ls-mat-ascii.cc, pt-jit.cc,
sighandlers.cc, utils.cc, variables.cc, ov-usr-fcn.cc, pt-assign.cc,
pt-exp.h, pt-id.cc: Update for namespaces.
* interpreter.cc, interpreter.h (current_evaluator): New global var.
(interpreter::m_evaluator): New data member.
(interpreter::~interpreter): Delete evaluator.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 12 Jul 2016 14:28:07 -0400 |
parents | b571fc85953f |
children | bac0d6f07a3e |
comparison
equal
deleted
inserted
replaced
22195:93ed9396f2c3 | 22196:dd992fd74fce |
---|---|
93 | 93 |
94 char postfix_index (void) const { return postfix_index_type; } | 94 char postfix_index (void) const { return postfix_index_type; } |
95 | 95 |
96 // Check if the result of the expression should be printed. | 96 // Check if the result of the expression should be printed. |
97 // Should normally be used in conjunction with | 97 // Should normally be used in conjunction with |
98 // tree_evaluator::statement_printing_enabled. | 98 // octave::tree_evaluator::statement_printing_enabled. |
99 bool print_result (void) const { return print_flag; } | 99 bool print_result (void) const { return print_flag; } |
100 | 100 |
101 virtual std::string oper (void) const { return "<unknown>"; } | 101 virtual std::string oper (void) const { return "<unknown>"; } |
102 | 102 |
103 virtual std::string name (void) const { return "<unknown>"; } | 103 virtual std::string name (void) const { return "<unknown>"; } |