source: branches/generator/generator.lpr@ 178

Last change on this file since 178 was 137, checked in by chronos, 8 years ago
  • Added: Lookup tables can be defined and their usage set from grammer rules.
File size: 907 bytes
Line 
1program generator;
2
3{$mode objfpc}{$H+}
4
5uses
6 {$IFDEF UNIX}{$IFDEF UseCThreads}
7 cthreads,
8 {$ENDIF}{$ENDIF}
9 Interfaces, // this includes the LCL widgetset
10 Forms, UCore, Common, TemplateGenerics, UFormMain, SysUtils, UBuilder,
11 UFormRules, UFormLookupTables, UFormLookupTable
12 { you can add units after this };
13
14{$R *.res}
15
16{$IFDEF DEBUG}
17const
18 HeapTraceLog = 'heaptrclog.trc';
19{$ENDIF}
20
21begin
22 {$IFDEF DEBUG}
23 // Heap trace
24 DeleteFile(ExtractFilePath(ParamStr(0)) + HeapTraceLog);
25 SetHeapTraceOutput(ExtractFilePath(ParamStr(0)) + HeapTraceLog);
26 {$ENDIF}
27
28 Application.Title := 'Language generator';
29 RequireDerivedFormResource := True;
30 Application.Initialize;
31 Application.CreateForm(TCore, Core);
32 Application.CreateForm(TFormMain, FormMain);
33 Application.CreateForm(TFormRules, FormRules);
34 Application.CreateForm(TFormLookupTable, FormLookupTable);
35 Application.Run;
36end.
37
Note: See TracBrowser for help on using the repository browser.