Changeset 28
- Timestamp:
- Nov 11, 2009, 10:30:00 AM (15 years ago)
- Location:
- branches/Analyzátor gramatiky
- Files:
-
- 8 added
- 2 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Analyzátor gramatiky
- Property svn:ignore
-
old new 1 1 *.exe 2 2 *.dcu 3 backup 4 lib
-
- Property svn:ignore
-
branches/Analyzátor gramatiky/UGrammer.pas
r17 r28 1 1 unit UGrammer; 2 3 {$MODE Delphi} 2 4 3 5 interface … … 9 11 TGrammerRule = class; 10 12 11 TPathItem = record13 TPathItem = class 12 14 public 13 15 Rule: TGrammerRule; … … 18 20 end; 19 21 20 TGrammerPath = record22 TGrammerPath = class 21 23 Items: array of TPathItem; 22 24 procedure Assign(Source: TGrammerPath); … … 24 26 end; 25 27 26 TPossibleCharacter = record28 TPossibleCharacter = class 27 29 Character: Char; 28 30 RulePath: TGrammerPath; … … 30 32 end; 31 33 32 TPossibleCharacters = record34 TPossibleCharacters = class 33 35 Items: array of TPossibleCharacter; 34 36 procedure Assign(Source: TPossibleCharacters); -
branches/Analyzátor gramatiky/UMainForm.pas
r17 r28 1 1 unit UMainForm; 2 2 3 {$MODE Delphi} 4 3 5 interface 4 6 5 7 uses 6 Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,7 Dialogs, StdCtrls, ComCtrls, UGrammer, UProgram;8 LCLIntf, Messages, SysUtils, Classes, Graphics, Controls, Forms, 9 Dialogs, StdCtrls, ComCtrls, LResources, UGrammer, UProgram; 8 10 9 11 const … … 50 52 implementation 51 53 52 {$R *.dfm}53 54 54 55 procedure TMainForm.Button1Click(Sender: TObject); … … 648 649 end; 649 650 651 initialization 652 {$i UMainForm.lrs} 653 {$i UMainForm.lrs} 654 650 655 end. -
branches/Analyzátor gramatiky/UProgram.pas
r17 r28 1 1 unit UProgram; 2 3 {$MODE Delphi} 2 4 3 5 interface -
branches/Analyzátor gramatiky/grammer/test.grm
r10 r28 4 4 constant = CONST constant_definition { ',' constant_definition } ';' . 5 5 constant_definition = NAME '=' NUMBER . 6 variable = VAR NAME { ',' NAME } ';' . 6 variable = 7 VAR NAME { ',' NAME } ';' . 7 8 function = FUNCTION NAME '(' [ NAME { ',' NAME } ] ')' block ';' . 8 9 expression = [ ( '-' | '+' ) ] term { ( '-' | '+' ) term } .
Note:
See TracChangeset
for help on using the changeset viewer.