Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation on 04/18/22 in all areas

  1. Hi all, I've always missed a modern implementation of a syntax highlighting in RAD Studio. So when I saw a github repo containing pascal grammar for Tree-sitter, I started working on an IDE extension that makes use of it. Since there are no Delphi bindings for Tree-sitter I wrote a simple TCP Server in Rust, which receives the currently opened source code, parses it and generates the highlight information. After this information is sent back to the IDE I use it to draw more informative highlighting. Simple example below. I'm not sure about the performance, since it sends the code, parses and sends back the entire ToolsApi.pas file with 83k lines in 421 milliseconds. But it doesn't need to reparse the entire file on changes so it should be able to provide real-time highlighting, although I haven't implemented that yet. Now the grammar isn't finished and I haven't really looked into how to write grammar files, plus I really don't know enough about the Pascal and Delphi language to undertake something like that. The Point of this post is to gauge if there is even any interest for an extension like this.
  2. Hello, Free eBook : Delphi High Performance By Primož Gabrijelčič Publication date: Feb 2018 Pages: 336 Build fast, scalable, and high performing applications with Delphi Here only today : https://www.packtpub.com/free-learning
  3. Lars Fosdal

    Free eBook : Delphi High Performance

    Or just buy it and support the author.
  4. Renate Schaaf

    Parallel Resampling of (VCL-) Bitmaps

    I might have introduced a bug in GR32_Resamplers, as it is, the left bound of the source rectangle is ignored. The fix is simple: Line 1778 needs to be SourceColor := @Src.Bits[ClusterY[0].Pos * Src.Width+SrcRect.Left]; //+SrcRect.Left was missing! and line 1806: SourceColor := @Src.Bits[ClusterY[Y].Pos * Src.Width+SrcRect.Left];//+SrcRect.Left was missing! Hope, you read this, Anders. If I don't hear from you, I'll create an issue on GitHub. Edit: I definitely intoduced it by changing the order of the loops, I checked against an old version. Instead of +SrcRect.Left one should probably use +MapXLoPos Renate
  5. Edwin Yip

    IDE Syntax Highlighter using Tree-sitter

    Hi @laes, thanks for your efforts! In case you didn't know, the CN Pack Delphi extension provides some advanced syntax highlighting: http://www.cnpack.org/images/cnwizards.gif
  6. SwiftExpat

    Parnassus Bookmarks for Delphi 11 Alexandria?

    It would be a dream if EMB would just opensource bookmarks, it would be a better PR experience than this long thread. I would not mind to build the dll myself.
  7. Pat Foley

    Calculation problem

    Here's idea make a Tlist<TQuadbeam> to help separate the UI from the math. I marked up the UI to help.
  8. Tom F

    Parnassus Bookmarks for Delphi 11 Alexandria?

    I'm still waiting here too for the long-promised bookmarks feature to become available again. In the absence of clear, honest communication from EMB, I'm assuming that their management has decided to allocate resources to other issues rather than to fix current bugs. This would be considered a failure in most professional development organizations. EMB management has also apparently decided to conceal from their customers that they have made this decision and why. If we can't trust EMB to make good decisions and to communicate honestly with us on small issues like this, I fear we can't trust them on anything. Delphi continues to suffer from a thousand cuts like this one.
  9. DJof SD

    Parnassus Bookmarks for Delphi 11 Alexandria?

    30 days on, and it appears all's quiet on the bookmarks front. Did I miss something or is it still waiting to be corrected?
×