Git Product home page Git Product logo

dgrok's Introduction

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!

dgrok's People

Contributors

joewhite avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.