A BSD licensed code completion engine is now available for Delphi XE8 Firemonkey. One of the core functionalities that is useful to have when building a code editor or IDE is code completion. Code completion (otherwise known as Code Insight or Intellisense by Microsoft) is the popup hint window that comes up after you press . or ( when writing Object Pascal code. It gives you a list of properties, methods, or parameters that the current class or method supports. This makes it easier and faster to build software because the hints show you exactly what you can do while you are trying to do it. This code completion engine was built for me by a developer in Belarus via UpWork. It uses a number of third party libraries to make it happen including Delphi AST, JsonDataObjects, OXml, SvCollections.Tries, and TTMSFMXMemo. The TTMSFMXMemo component (part of a commercial library) provides the syntax highlighting and the hint window. Delphi AST provides the parsing of the Object Pascal files, OXml provides fast parsing of the syntax tree, JsonDataObjects provides a super fast JSON storage and retrieval mechanism, and SvCollections.Tries provides a object for fast lookups of the data. The engine should run on Android, IOS, OSX, and Windows. I have compiled it for all platforms but only tested it on OSX and Windows. You should also be able to use this engine in Appmethod. Full source code and a sample application demoing the engine are available via Github.

Download the full Object Pascal code completion engine and sample project for Delphi XE8 Firemonkey.