runtime.h
来自「a basic interpreter free basic」· C头文件 代码 · 共 51 行
H
51 行
#pragma once
/*
* Runtime engine
*/
class CRunTime
{
private:
// Lexical analyzer instance
CLexicalAnalyzer *m_LexicalAnalyzer;
// Parser instance
CSyntaxAnalyzer *m_SyntaxAnalyzer;
// Runtime context
CContext *m_Context;
// Name of the problem (program)
string m_Name;
public:
CRunTime(void);
~CRunTime(void);
// Start the BASIC runtime engine
int Start(void);
private:
// Print out the source listing.
void cList();
void cList(int LineNumber);
// Save a file to disk
void cSave(void);
// Unsave (delete) the current program from disk
void cUnSave(void);
// Display the catalog of source files
void cCatalog(void);
// Creates a new program
void cNew(void);
// Read an existing source file
void cOld(void);
// Scratch the existing contents of the current program, creating a clean slate
void cScratch(void);
// Rename the program
void cRename(void);
// Run the startup process
void cInitialize(void);
// Run the code listing
void cRun(void);
// Catch exceptions and print out the corresponding error message.
void cError(int Error);
// Show help
void cHelp(void);
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?