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

📄 scanner.h

📁 PL/0源码
💻 H
字号:
(* =========================================================================    scanner.[h] -- table-driven lexical scanner    Scanner tables are created by the program makescan, and are linked    into the compiler in the form of scantab.cc.    assumptions:        There is only one 'except' class in the scangen tables, and            it constitutes the reserve words.        Tokens never contain NULL characters.        Case is insignificant.  ========================================================================= *)const    MAX_MAJOR_TOKEN_NUM = 100;    MAX_MINOR_TOKEN_NUM = 100;    MAX_STRING_SPACE    = 20000;    NULL        = 0;    LINE_FEED   = chr (10); { returned by readChar at EOLN }    FILE_END    = chr (1);  { returned by readChar at EOF }    BLANK       = ' ';    TAB         = '	';    TAB_WIDTH   = 8;    MAX_LINE_LENGTH = 133;type    MajorTokenNum = 0..MAX_MAJOR_TOKEN_NUM;    MinorTokenNum = 0..MAX_MINOR_TOKEN_NUM;    StringSpaceIndex = 0..MAX_STRING_SPACE;        {this should be an opaque type}

⌨️ 快捷键说明

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