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

📄 uc_tokens.h

📁 UC Library Extensions UnderC comes with a pocket implementation of the standard C++ libraries, wh
💻 H
字号:
// input.h

#ifndef __UC_TOKENS_H
#define __UC_TOKENS_H

#include "tokens.h"
typedef int (*RESTOREFN)();

class UCTokenStream: public TokenStream {
private:
    RESTOREFN m_restore, m_openfn; 
    string m_original_file;
public:
    UCTokenStream(char *file) : TokenStream(file), m_restore(NULL),m_openfn(NULL) {}
    static void init();
    bool next_two(char *ts, bool skip = true);
    void set_restore_op(RESTOREFN fn);
    void set_open_op(RESTOREFN fn);
// overrides!
    bool user_cmd(string ppd);
    void do_prompt();
    void on_hash_cmd();
    void handle_builtin_macro(char *tbuff, int id);
    void on_open();
    void on_restore();
    void on_clear(const string& filename, int line);
    void on_add_macro(char *name, PMEntry pme);
    void on_error(const char *msg, bool is_error);
	bool is_interactive_mode();
    int  eval_const_expr(const char* msg);
};
#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -