⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 runtime.h

📁 a basic interpreter free basic
💻 H
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -