Giter VIP home page Giter VIP logo

epl's Introduction

I've just tried to make a system programming language like C. After 3 months (roughly 100 man hours) I decided to move on and start something new. So I released the source of it.

This language will have the following features and concepts:

- LL1 grammar which is easy to parse with recursive descent
- Modular compiler: there will be two main components: the top components which analyze the source code and generates info for the code generator.
- No implicit type conversions to increase safety and see performance penalties: you must cast every time when add a float to an integer or vice versa (float-integer conversion is quite slow). Similar need when working with signed and unsigned integers: many bugs can arise due to using the improper integer.
- Parameter directions: in, out, ref so pointer magic of arguments are hidden.
- Four kinds of pointer types: pointer: points to data on heap; localptr: create when getting the address of a local variable, functions cannot return localptrs (prevent stack corruption); staticptr: to read only static data, like string literals in C, you cannot write through a staticptr. handle: opaque pointer, you cannot dereference it.
- cleanup blocks: An optional cleanup block can be added to the function. Whenever the function returns, code in the cleanup block is executed.
- etc.

The entire project is the WIP phase (10% complete I think), and the development is paused. Feel free to fork your project from mine if you want.

epl's People

Stargazers

 avatar

Watchers

 avatar

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.