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

📄 parse.pas

📁 汇编源代码大全2
💻 PAS
字号:
{ A program demonstrating Turbo Pascal 5.5's built in parsing             }
{   Program parses a line and displays the individual words on seperate   }
{   lines on the screen.                                                  }
{$M 1024,0,0}
{$A-,E-,L-,N-,R- }
PROGRAM PARSE;

USES CRT;

CONST 
  MESSAGE =
    'Now is the time for all good men to code in 68-char columns.';

TYPE
  PSTRING     = STRING[128]; { Defines biggest parsable string  }
  PPS         = ^PSTRING;    { This will point at Prog. Prefix  }

VAR
  PARSELINE   : PPS;
  X           : INTEGER;
  WORKSTR     : STRING[40];

BEGIN
  PARSELINE := PTR(PREFIXSEG,128); { Initialize pointer to work area  }
  CLRSCR;
  WRITELN('MESSAGE: ',MESSAGE);    { Show what is going to be parsed  }
  PARSELINE^ := MESSAGE;
  FOR X := 1 TO PARAMCOUNT DO      { Now display each of the pieces   }
    WRITELN(PARAMSTR(X));
  READLN;                          { Let user acknowledge the display }
END.


⌨️ 快捷键说明

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