XPToken.pas
Upload User: yjb1804
Upload Date: 2021-01-30
Package Size: 3105k
Code Size: 1k
Category:

Email Server

Development Platform:

Delphi

  1. unit XPToken;
  2. {
  3.  $Source: /cvsroot/dunit/dunit/Contrib/DUnitWizard/Source/DelphiExperts/Common/XPToken.pas,v $
  4.  $Revision: 1.2 $
  5.  $Date: 2004/05/03 15:07:15 $
  6.  Last amended by $Author: pvspain $
  7.  $State: Exp $
  8.  XPToken:
  9.  Copyright (c) 2001 by The Excellent Programming Company Pty Ltd
  10.  (ABN 27 005 394 918). All rights reserved. This source code is not to be
  11.  redistributed without prior permission from the copyright holder.
  12.  Contact Paul Spain via email: paul@xpro.com.au
  13.  }
  14. interface
  15. uses XPKeyWords;
  16. const
  17.   tkNull = #0;             { special token types }
  18.   tkIdentifier = #1;
  19.   tkString = #2;
  20.   tkInteger = #3;
  21.   tkFloat = #4;
  22.   tkLE = #5;               { <= }
  23.   tkGE = #6;               { >= }
  24.   tkNE = #7;               { <> }
  25.   tkDotDot = #8;           { .. }
  26.   tkAssign = #9;           { := }
  27.   tkKeyWord = #10;
  28. type
  29.   TXPTokenKind = char;
  30.   PXPToken = ^TXPToken;
  31.   TXPToken = record
  32.     Position: LongInt;
  33.     NewLine: Boolean;
  34.     Lexeme: string;
  35.     Kind: TXPTokenKind;
  36.     KeyWord: TXPKeyWord;
  37.     LookAhead: PXPToken; { = nil for LookAhead instance of TXPToken }
  38.     end;
  39.   TXPTokenEvent = procedure(const Token: TXPToken) of object;
  40. implementation
  41. const CVSID: string = '$Header: /cvsroot/dunit/dunit/Contrib/DUnitWizard/Source/DelphiExperts/Common/XPToken.pas,v 1.2 2004/05/03 15:07:15 pvspain Exp $';
  42. end.