blob: 8b07216a51917956ca9a6447123b04beae7295e0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
{
This file is part of the Free Component Library (FCL)
Copyright (c) 2012 by the Free Pascal development team
Pascal text reader
See the file COPYING.FPC, included in this distribution,
for details about the copyright.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
**********************************************************************}
unit IReaderPAS;
{$mode objfpc}{$H+}
interface
uses
Classes, fpIndexer, IReaderTXT;
type
{ TIReaderPAS }
TIReaderPAS = class(TIReaderTXT)
private
protected
function AllowedToken(token: string): boolean; override;
public
procedure LoadFromStream(FileStream: TStream); override;
end;
implementation
{ TIReaderPAS }
function TIReaderPAS.AllowedToken(token: string): boolean;
begin
Result:=inherited AllowedToken(token);
end;
procedure TIReaderPAS.LoadFromStream(FileStream: TStream);
begin
inherited LoadFromStream(FileStream);
end;
initialization
FileHandlers.RegisterFileReader('Pascal format', 'pas', TIReaderPAS);
end.
|