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

📄 er.l

📁 a graphic tools for MTools
💻 L
字号:
%{/* er.l - A lexer for mtools stderr-output * * process this file with *   lex -Per er.l * to re-generate lex.er.c from er.l * */int copyquestion (const char *, const char *);int shallwecontinue (const char *, const char *);void mtoolserroutput(const char *); %}full Disk\ full\ninsert Can't\ open\ .+:\ Device\ not\ configured\nCannot\ initialize\ '.:'\nlock Can't\ open\ .+:\ Read-only\ file\ system\nCannot\ initialize\ '.:'\nmdelnf mdel:\ File\ \".+:.+\"\ not\ found\nmrennf mren:\ File\ \".+:.+\"\ not\ found\nnondos init\ .+:\ non\ DOS\ media\nCannot\ initialize\ '.:'\nbusy Can't\ open\ .+:\ Device\ or\ resource\ busy\nCannot\ initialize\ '.:'\n%%{full} { mtoolserroutput(ertext);          return copyquestion("Disk full",                             "There is no space left on the target\n\device. You can either insert\n\a new disk, skip this file or cancel.\n\What shall we do?"); }({insert})+ { mtoolserroutput(ertext);               warnme("No floppy in drive",                     "There is no floppy in the drive."); }({lock})+ { mtoolserroutput(ertext);             warnme("Read-only drive",                   "This floppy is read-only. If you want to\n\write to it, remove the write-protection."); }{mdelnf}|{mrennf} { mtoolserroutput(ertext);                     warnme("File not found",                           "I was unable to locate the file\n\on the disk. Maybe you inserted\n\another floppy in between?"); }({nondos})+ { mtoolserroutput(ertext);               warnme("Non DOS media",                     "This does not look like a DOS floppy.\n\Maybe it is minix, ext2 or some other format.\n\In order to read such a floppy, you have to\n\mount it."); }({busy})+ { mtoolserroutput(ertext);             warnme("Device or resource busy",                   "I was unable to access the floppy.\n\This means that probably some other\n\application is using the floppy. Perhaps\n\the floppy is already mounted?"); }.|\n               { mtoolserroutput(ertext); }%%int erwrap(){  return (1);} int er_interface( FILE * infile ) {  erin=infile;  return erlex();}  

⌨️ 快捷键说明

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