/// Constructor
InterpreterVirtual();
+
+ void Init();
+
+
+ /// Vector of names of open files with full path (as open)
+ std::vector<std::string> mFileName;
+
+
+ /// Stores the current line number in each open file
+ std::vector<int> mLine;
+
+ bool mThrow;
+
+ /// Are we in a command line context ?
+ bool mCommandLine;
+
+
+ /// Vector of names of files which have been open
+ /// before (and may closed then which are no more in mFileName)
+ /// with full path (as open)
+ std::vector<std::string> mFileNameHistory;
+
+ /// The user of the interpreter (0 if none)
+ bbtk::InterpreterUser* mUser;
+
+ /// The dictionnary of commands
+ CommandDictType mCommandDict;
+
private:
- void Init();
/// Opens the file fullPathScriptName
/// includeScriptName is the name as given to the include command
// ATTRIBUTES
- /// The user of the interpreter (0 if none)
- bbtk::InterpreterUser* mUser;
/// Vector of open files / buffers (can be stringstream)
std::vector<std::istream*> mFile;
- /// Vector of names of open files with full path (as open)
- std::vector<std::string> mFileName;
-
- /// Vector of names of files which have been open
- /// before (and may closed then which are no more in mFileName)
- /// with full path (as open)
- std::vector<std::string> mFileNameHistory;
/// Vector of names of open files as given to the include command
std::vector<std::string> mIncludeFileName;
- /// Stores the current line number in each open file
- std::vector<int> mLine;
-
- /// The dictionnary of commands
- CommandDictType mCommandDict;
-
- /// Are we in a command line context ?
- bool mCommandLine;
/// Are we inside a commented-out zone ?
bool mInsideComment;
int bufferNb;
- bool mThrow;
/// The break signal
// BreakSignalType mBreakSignal;