Skip to content

FernandoTheDev/dip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DIP

D Implementation of PHP.

A Tiny Engine for PHP.

DIP is a clean-room implementation of a PHP engine written in the D programming language. It aims to be a lightweight, fast, and embeddable CLI alternative to the official Zend Engine, focusing on low overhead and easy FFI (Foreign Function Interface) integration.

Current Status: 🚧 Work in Progress (Lexer Phase)

âš¡ Why DIP?

  • Tiny Footprint: Designed strictly for CLI and scripting usage. No web server bloat.
  • Native Speed: Built with D for high-performance native compilation.
  • Clean Room: Written from scratch, learning from the language behavior rather than the source code.
  • Modern Core: Stack-based Virtual Machine architecture (planned).

🗺 Roadmap

  • Lexer: Tokenization of keywords, strings, integers, and basic syntax.
  • Parser: AST (Abstract Syntax Tree) generation.
  • Compiler: Emitting bytecode (OpCodes).
  • Virtual Machine: Stack-based execution engine.
  • Standard Library: Basic IO and String manipulation.
  • FFI: Native C interop via D.

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

Copyright (c) 2026 Fernando Cabral.

About

A Tiny engine for Php

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages