DGrok.Framework
0.8.1
dotnet add package DGrok.Framework --version 0.8.1
NuGet\Install-Package DGrok.Framework -Version 0.8.1
<PackageReference Include="DGrok.Framework" Version="0.8.1" />
paket add DGrok.Framework --version 0.8.1
#r "nuget: DGrok.Framework, 0.8.1"
// Install DGrok.Framework as a Cake Addin #addin nuget:?package=DGrok.Framework&version=0.8.1 // Install DGrok.Framework as a Cake Tool #tool nuget:?package=DGrok.Framework&version=0.8.1
DGrok Delphi parser
DGrok is all about parsing Delphi source code. It has three parts:
- A Delphi grammar: Grammar.html documents the grammar for the Delphi language.
- A parser: DGrok.Framework.dll is an open-source Delphi parser written in C#. It reads Delphi source files and turns them into parse trees.
- A set of tools: DGrok.Demo.exe is a set of open-source tools built on top of the parser.
The current parser has full support for Delphi 2007 source code (to the best of my knowledge), but no support for Delphi 2009 features like generics. There's also no symbol table support, so the tools can't do refactorings or Find References.
More information is available on the DGrok website.
Compiling DGrok
You should be able to compile the included code as-is, using Visual Studio 2005 (or later) or MSBuild.
If you want to actually make changes to the code, you'll want to install
Ruby and Rake (gem install rake
), and then open a command prompt
in the Source directory and type:
rake
This will rebuild the Grammar.html file in the Source directory, do all the nifty codegen stuff, build everything, and run the tests. There are other Rake targets to do other things; see the Rakefile for details.
Beyond that, you're kind of on your own. I (Joe White, the original author) no longer use Delphi, so I'm no longer actively maintaining DGrok. I'll be happy to accept pull requests, though.
Happy parsing!
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- No dependencies.
-
net8.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
0.8.1 | 82 | 5/2/2024 |