XPToken.pas
上传用户:yjb1804
上传日期:2021-01-30
资源大小:3105k
文件大小:1k
- unit XPToken;
- {
- $Source: /cvsroot/dunit/dunit/Contrib/DUnitWizard/Source/DelphiExperts/Common/XPToken.pas,v $
- $Revision: 1.2 $
- $Date: 2004/05/03 15:07:15 $
- Last amended by $Author: pvspain $
- $State: Exp $
- XPToken:
- Copyright (c) 2001 by The Excellent Programming Company Pty Ltd
- (ABN 27 005 394 918). All rights reserved. This source code is not to be
- redistributed without prior permission from the copyright holder.
- Contact Paul Spain via email: paul@xpro.com.au
- }
- interface
- uses XPKeyWords;
- const
- tkNull = #0; { special token types }
- tkIdentifier = #1;
- tkString = #2;
- tkInteger = #3;
- tkFloat = #4;
- tkLE = #5; { <= }
- tkGE = #6; { >= }
- tkNE = #7; { <> }
- tkDotDot = #8; { .. }
- tkAssign = #9; { := }
- tkKeyWord = #10;
- type
- TXPTokenKind = char;
- PXPToken = ^TXPToken;
- TXPToken = record
- Position: LongInt;
- NewLine: Boolean;
- Lexeme: string;
- Kind: TXPTokenKind;
- KeyWord: TXPKeyWord;
- LookAhead: PXPToken; { = nil for LookAhead instance of TXPToken }
- end;
- TXPTokenEvent = procedure(const Token: TXPToken) of object;
- implementation
- 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 $';
- end.