Developer Roman Yankovsky has an Abstract Syntax Tree Builder source code project called Delphi AST over on Github. An abstract syntax tree represents a tree of the abstract syntactic structure of source code in languages like Object Pascal. What you can do with it is basically pass in some Object Pascal source code like a unit and it will turn it into an XML representation of that unit which can be navigated using XPath and other methods. This project is open source and there have been a number of other contributors to it from the Delphi community as well. It should be cross platform and compile on Android, IOS, OSX, and Windows. Additionally, it should fully support Delphi XE8 Firemonkey. One example of what it can be used to build is a code completion system for a code editor or IDE. It should also compile in Appmethod.
Head over and download the full source code for the abstract syntax tree builder from Github for Delphi XE8 Firemonkey.