forked from RomanYankovsky/DelphiAST
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Converted demo project to a Lazarus project (doesn't compile yet)
- Loading branch information
Showing
8 changed files
with
286 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,93 +1,96 @@ | ||
# Uncomment these types if you want even more clean repository. But be careful. | ||
# It can make harm to an existing project source. Read explanations below. | ||
# | ||
# Resource files are binaries containing manifest, project icon and version info. | ||
# They can not be viewed as text or compared by diff-tools. Consider replacing them with .rc files. | ||
#*.res | ||
# | ||
# Type library file (binary). In old Delphi versions it should be stored. | ||
# Since Delphi 2009 it is produced from .ridl file and can safely be ignored. | ||
#*.tlb | ||
# | ||
# Diagram Portfolio file. Used by the diagram editor up to Delphi 7. | ||
# Uncomment this if you are not using diagrams or use newer Delphi version. | ||
#*.ddp | ||
# | ||
# Visual LiveBindings file. Added in Delphi XE2. | ||
# Uncomment this if you are not using LiveBindings Designer. | ||
#*.vlb | ||
# | ||
# Deployment Manager configuration file for your project. Added in Delphi XE2. | ||
# Uncomment this if it is not mobile development and you do not use remote debug feature. | ||
#*.deployproj | ||
# | ||
|
||
# Delphi compiler-generated binaries (safe to delete) | ||
*.exe | ||
*.dll | ||
*.bpl | ||
*.bpi | ||
*.dcp | ||
*.so | ||
*.apk | ||
*.drc | ||
*.map | ||
*.dres | ||
*.rsm | ||
*.tds | ||
*.dcu | ||
|
||
# Delphi autogenerated files (duplicated info) | ||
*.cfg | ||
*Resource.rc | ||
|
||
# Delphi local files (user-specific info) | ||
*.local | ||
*.identcache | ||
*.projdata | ||
*.tvsconfig | ||
*.dsk | ||
|
||
# Delphi history and backups | ||
__history/ | ||
*.~* | ||
|
||
# ========================= | ||
# Operating System Files | ||
# ========================= | ||
|
||
# OSX | ||
# ========================= | ||
|
||
# Uncomment these types if you want even more clean repository. But be careful. | ||
# It can make harm to an existing project source. Read explanations below. | ||
# | ||
# Resource files are binaries containing manifest, project icon and version info. | ||
# They can not be viewed as text or compared by diff-tools. Consider replacing them with .rc files. | ||
#*.res | ||
# | ||
# Type library file (binary). In old Delphi versions it should be stored. | ||
# Since Delphi 2009 it is produced from .ridl file and can safely be ignored. | ||
#*.tlb | ||
# | ||
# Diagram Portfolio file. Used by the diagram editor up to Delphi 7. | ||
# Uncomment this if you are not using diagrams or use newer Delphi version. | ||
#*.ddp | ||
# | ||
# Visual LiveBindings file. Added in Delphi XE2. | ||
# Uncomment this if you are not using LiveBindings Designer. | ||
#*.vlb | ||
# | ||
# Deployment Manager configuration file for your project. Added in Delphi XE2. | ||
# Uncomment this if it is not mobile development and you do not use remote debug feature. | ||
#*.deployproj | ||
# | ||
|
||
# Delphi compiler-generated binaries (safe to delete) | ||
*.exe | ||
*.dll | ||
*.bpl | ||
*.bpi | ||
*.dcp | ||
*.so | ||
*.apk | ||
*.drc | ||
*.map | ||
*.dres | ||
*.rsm | ||
*.tds | ||
*.dcu | ||
|
||
# Delphi autogenerated files (duplicated info) | ||
*.cfg | ||
*Resource.rc | ||
|
||
# Delphi local files (user-specific info) | ||
*.local | ||
*.identcache | ||
*.projdata | ||
*.tvsconfig | ||
*.dsk | ||
|
||
# Delphi history and backups | ||
__history/ | ||
*.~* | ||
|
||
# ========================= | ||
# Operating System Files | ||
# ========================= | ||
|
||
# OSX | ||
# ========================= | ||
|
||
.DS_Store | ||
.AppleDouble | ||
.LSOverride | ||
|
||
# Icon must ends with two \r. | ||
Icon | ||
Icon | ||
|
||
|
||
# Thumbnails | ||
._* | ||
|
||
# Files that might appear on external disk | ||
.Spotlight-V100 | ||
.Trashes | ||
|
||
# Windows | ||
# ========================= | ||
|
||
# Windows image file caches | ||
Thumbs.db | ||
ehthumbs.db | ||
|
||
# Folder config file | ||
Desktop.ini | ||
|
||
# Recycle Bin used on file shares | ||
$RECYCLE.BIN/ | ||
|
||
# Windows Installer files | ||
*.cab | ||
*.msi | ||
*.msm | ||
*.msp | ||
|
||
# Windows | ||
# ========================= | ||
|
||
# Windows image file caches | ||
Thumbs.db | ||
ehthumbs.db | ||
|
||
# Folder config file | ||
Desktop.ini | ||
|
||
# Recycle Bin used on file shares | ||
$RECYCLE.BIN/ | ||
|
||
# Windows Installer files | ||
*.cab | ||
*.msi | ||
*.msm | ||
*.msp | ||
*.ppu | ||
*.o |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<CONFIG> | ||
<ProjectOptions> | ||
<Version Value="9"/> | ||
<PathDelim Value="\"/> | ||
<General> | ||
<Flags> | ||
<MainUnitHasUsesSectionForAllUnits Value="False"/> | ||
<MainUnitHasCreateFormStatements Value="False"/> | ||
<MainUnitHasTitleStatement Value="False"/> | ||
</Flags> | ||
<SessionStorage Value="InProjectDir"/> | ||
<MainUnit Value="0"/> | ||
<Title Value="DelphiASTDemo"/> | ||
<UseAppBundle Value="False"/> | ||
<ResourceType Value="res"/> | ||
</General> | ||
<i18n> | ||
<EnableI18N LFM="False"/> | ||
</i18n> | ||
<VersionInfo> | ||
<StringTable ProductVersion=""/> | ||
</VersionInfo> | ||
<BuildModes Count="1"> | ||
<Item1 Name="Default" Default="True"/> | ||
</BuildModes> | ||
<PublishOptions> | ||
<Version Value="2"/> | ||
</PublishOptions> | ||
<RunParams> | ||
<local> | ||
<FormatVersion Value="1"/> | ||
</local> | ||
</RunParams> | ||
<RequiredPackages Count="1"> | ||
<Item1> | ||
<PackageName Value="LCL"/> | ||
</Item1> | ||
</RequiredPackages> | ||
<Units Count="4"> | ||
<Unit0> | ||
<Filename Value="DelphiASTDemo.lpr"/> | ||
<IsPartOfProject Value="True"/> | ||
</Unit0> | ||
<Unit1> | ||
<Filename Value="uMainForm.pas"/> | ||
<IsPartOfProject Value="True"/> | ||
<HasResources Value="True"/> | ||
</Unit1> | ||
<Unit2> | ||
<Filename Value="..\Source\DelphiAST.Classes.pas"/> | ||
<IsPartOfProject Value="True"/> | ||
</Unit2> | ||
<Unit3> | ||
<Filename Value="..\Source\DelphiAST.pas"/> | ||
<IsPartOfProject Value="True"/> | ||
</Unit3> | ||
</Units> | ||
</ProjectOptions> | ||
<CompilerOptions> | ||
<Version Value="11"/> | ||
<PathDelim Value="\"/> | ||
<SearchPaths> | ||
<IncludeFiles Value="..\Source;..\Source\SimpleParser;..\..\Generics.Collections\src"/> | ||
<OtherUnitFiles Value="..\Source;..\Source\SimpleParser;..\..\Generics.Collections\src"/> | ||
</SearchPaths> | ||
<Parsing> | ||
<SyntaxOptions> | ||
<SyntaxMode Value="delphi"/> | ||
</SyntaxOptions> | ||
</Parsing> | ||
<Linking> | ||
<Options> | ||
<Win32> | ||
<GraphicApplication Value="True"/> | ||
</Win32> | ||
</Options> | ||
</Linking> | ||
<Other> | ||
<CustomOptions Value="-dBorland -dVer150 -dDelphi7 -dCompiler6_Up -dPUREPASCAL"/> | ||
</Other> | ||
</CompilerOptions> | ||
<Debugging> | ||
<Exceptions Count="3"> | ||
<Item1> | ||
<Name Value="EAbort"/> | ||
</Item1> | ||
<Item2> | ||
<Name Value="ECodetoolError"/> | ||
</Item2> | ||
<Item3> | ||
<Name Value="EFOpenError"/> | ||
</Item3> | ||
</Exceptions> | ||
</Debugging> | ||
</CONFIG> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
program DelphiASTDemo; | ||
|
||
{$MODE Delphi} | ||
|
||
uses | ||
Forms, Interfaces, | ||
uMainForm in 'uMainForm.pas' {Form1}; | ||
|
||
{$R *.res} | ||
|
||
begin | ||
Application.Initialize; | ||
Application.MainFormOnTaskbar := True; | ||
Application.CreateForm(TForm1, Form1); | ||
Application.Run; | ||
end. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<CONFIG> | ||
<ProjectSession> | ||
<PathDelim Value="\"/> | ||
<Version Value="9"/> | ||
<BuildModes Active="Default"/> | ||
<Units Count="4"> | ||
<Unit0> | ||
<Filename Value="DelphiASTDemo.lpr"/> | ||
<IsPartOfProject Value="True"/> | ||
<UsageCount Value="20"/> | ||
<Loaded Value="True"/> | ||
<DefaultSyntaxHighlighter Value="Delphi"/> | ||
</Unit0> | ||
<Unit1> | ||
<Filename Value="uMainForm.pas"/> | ||
<IsPartOfProject Value="True"/> | ||
<HasResources Value="True"/> | ||
<EditorIndex Value="1"/> | ||
<UsageCount Value="20"/> | ||
<Loaded Value="True"/> | ||
<DefaultSyntaxHighlighter Value="Delphi"/> | ||
</Unit1> | ||
<Unit2> | ||
<Filename Value="..\Source\DelphiAST.Classes.pas"/> | ||
<IsPartOfProject Value="True"/> | ||
<IsVisibleTab Value="True"/> | ||
<EditorIndex Value="2"/> | ||
<UsageCount Value="20"/> | ||
<Loaded Value="True"/> | ||
<DefaultSyntaxHighlighter Value="Delphi"/> | ||
</Unit2> | ||
<Unit3> | ||
<Filename Value="..\Source\DelphiAST.pas"/> | ||
<IsPartOfProject Value="True"/> | ||
<EditorIndex Value="-1"/> | ||
<WindowIndex Value="-1"/> | ||
<TopLine Value="-1"/> | ||
<CursorPos X="-1" Y="-1"/> | ||
<UsageCount Value="20"/> | ||
<DefaultSyntaxHighlighter Value="Delphi"/> | ||
</Unit3> | ||
</Units> | ||
<JumpHistory HistoryIndex="-1"/> | ||
</ProjectSession> | ||
<SkipCheckLCLInterfaces Value="True"/> | ||
</CONFIG> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
object Form1: TForm1 | ||
Left = 0 | ||
Top = 0 | ||
Caption = 'Form1' | ||
ClientHeight = 389 | ||
ClientWidth = 666 | ||
Color = clBtnFace | ||
Font.Charset = DEFAULT_CHARSET | ||
Font.Color = clWindowText | ||
Font.Height = -11 | ||
Font.Name = 'Tahoma' | ||
Font.Style = [] | ||
Menu = MainMenu1 | ||
OldCreateOrder = False | ||
PixelsPerInch = 96 | ||
TextHeight = 13 | ||
object Memo1: TMemo | ||
Left = 0 | ||
Top = 0 | ||
Width = 666 | ||
Height = 389 | ||
Align = alClient | ||
ScrollBars = ssBoth | ||
TabOrder = 0 | ||
end | ||
object MainMenu1: TMainMenu | ||
Left = 224 | ||
Top = 96 | ||
object OpenDelphiUnit1: TMenuItem | ||
Caption = 'Open Delphi Unit...' | ||
OnClick = OpenDelphiUnit1Click | ||
end | ||
end | ||
object OpenDialog1: TOpenDialog | ||
Filter = 'Delphi Unit|*.pas|Delphi Package|*.dpk|Delphi Project|*.dpr' | ||
Options = [ofHideReadOnly, ofPathMustExist, ofFileMustExist, ofEnableSizing] | ||
Left = 272 | ||
Top = 96 | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters