From fe5ec7722c8291286ea12a33a5df97330a571fd3 Mon Sep 17 00:00:00 2001 From: Tomek Mrugalski Date: Wed, 28 Oct 2015 20:37:12 +0100 Subject: [4088] Classes renamed to Kea nomenclature --- src/lib/eval/eval_context.h | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'src/lib/eval/eval_context.h') diff --git a/src/lib/eval/eval_context.h b/src/lib/eval/eval_context.h index 1d26f04faa..9960d77f95 100644 --- a/src/lib/eval/eval_context.h +++ b/src/lib/eval/eval_context.h @@ -1,22 +1,22 @@ -#ifndef CALCXX_DRIVER_HH -# define CALCXX_DRIVER_HH +#ifndef EVAL_CONTEXT_H +#define EVAL_CONTEXT_H # include # include # include "parser.h" // Tell Flex the lexer's prototype ... # define YY_DECL \ - yy::calcxx_parser::symbol_type yylex (calcxx_driver& driver) + yy::EvalParser::symbol_type yylex (EvalContext& driver) // ... and declare it for the parser's sake. YY_DECL; // Conducting the whole scanning and parsing of Calc++. -class calcxx_driver +class EvalContext { public: - calcxx_driver (); - virtual ~calcxx_driver (); + EvalContext (); + virtual ~EvalContext (); std::map variables; @@ -29,7 +29,9 @@ public: // Run the parser on file F. // Return 0 on success. - int parse (const std::string& f); + int parseFile(const std::string& filename); + + int parseString(const std::string& str); // The name of the file being parsed. // Used later to pass the file name to the location tracker. @@ -42,4 +44,4 @@ public: void error (const yy::location& l, const std::string& m); void error (const std::string& m); }; -#endif // ! CALCXX_DRIVER_HH +#endif // ! EVALCONTEXT_HH -- cgit v1.2.3