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 55 56 57 58 59 60 61 62
|
unit Unit2;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Unit1;
type
TForm1 = class(TForm)
Button1: TButton;
Edit1: TEdit;
Edit2: TEdit;
Label1: TLabel;
Label2: TLabel;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
Rule1, Rule2, Rule3, Rule4, Rule5, Rule6, Rule7, Rule8, Rule9, Rule10 : TRule;
implementation
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
var s, mot, dictionnaire, a: string;
i:integer;
begin
mot:=edit1.text;
dictionnaire:=edit2.Text;
s:=mot;
Rule1 := TRule.Create;
Rule1.ajouteIdentificateur(Identifd);
Rule1.ajouteIdentificateur(Identife);
Rule1.ajouteOperation(Operationf);
Rule1.ajouteOperation(Operationg);
Rule2 := TRule.Create;
Rule2.ajouteIdentificateur(Identifd);
Rule2.ajouteIdentificateur(Identife);
Rule2.ajouteOperation(Operationf);
Rule2.ajouteOperation(Operationg);
...
...
...
Rule.analyse(mot,dictionnaire);
end; |
Partager