Giter Club home page Giter Club logo

multidelphi's Introduction

MultiDelphi

MultiDelphi is a Delphi (ObjectPascal) multi-target compiler using the LLVM framework. It is an attempt at a working Delphi7 compiler, in particular one capable of compiling to Flash (ActionScript 3). The original goal was to target the ActionScript Virtual Machine (AVM), in order to port some large Delphi projects such as the TERRA graphical engine and the Minimon 3D game to the web. Other future targets will include x86 and Javascript/asm.js+WebGL (probably using emscripten). Another interestig target would be Haxe.

This project is still in its early stages. The Delphi front-end is mostly done, with the C++ back-end supporting most of Delphi features and an initial prototype of the LLVM IR back-end. Planned stages of the project:

  • a Delphi front-end for LLVM

    Initially we thought of using the Dgrok recursive-descent (LL(k)) parser. However, looking at the work required to convert the simple lexical-oriented Parse Tree that Dgrok produces to a robust complete AST, we decided to create our own shift-reduce parser. So MultiDelphi ended up with a complete new shift-reduce (LALR) parser created with the C# ports of the Jay Yacc-based parser generator (CSJay) and the JFlex lexer generator (CSFlex). Currently MultiDelphi is built on top of LLVM 3.2, the same version used in FlaCC/Crossbridge.

  • a C++ back-end

  • AS3 (Flash) back-end

    We meant to emulate the manual memory management of Delphi through the Flash domain memory component, which was introduced in AS3 to support the FlaCC/Crossbridge C++ compiler. Some documentation on manual memory management in Flash can be found here

  • ABC (AS3 bytecode) back-end, based on the AVM2 target developed in FlaCC/Crossbridge

References:

multidelphi's People

Contributors

miguelzf avatar relfos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

multidelphi's Issues

DelphiParser

I couldn't generate the DelphiParser.pas file at all using "./deps/cs-jay/jay.exe" can you make this file available?

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.