Giter Site home page Giter Site logo

haddr-lang's Introduction

Haddr-Lang

Purpose

This is a language that I am making, entirely in haskell trying to follow conventions of functional programming as closely as I can. As for the language itself, I want to make it a perfect blend between functional and imperative programming, allowing for an easy transition for imperative programmers into the functional style.

If you see some problems, please don't hesitate to submit a pull request!

Feature Todo List

Short Term

  • preprocessor macros
  • for loop
  • break/continue of loops
  • update the readme
  • make proper grammar specification
  • string/char literals
  • type check proc call
  • add type for function pointer
  • import statement (copy paste style)
  • lambdas (not closures)
  • static linking (get rid of libc), make list of syscalls, std library
  • improve ui, add flag to run vs compile (-c, -r), output directory/files
  • tuples
  • different sized int/uint types
  • make if statements/blocks into expressions
  • global variables in (bss)
  • compile time constants, arrays initialized to size of compile time constant
  • graphviz of control flow
  • profiling
  • ++, --, & (address of), * (dereference), +=, -=, bitwise operators
  • add emacs/vim support
  • type check return statements
  • do nothing if statement doesnt do anything
  • inline asm

Long Term

  • generics (with typeclasses / type constraints)
  • proper testing
  • move to stack and ditch cabal
  • figure out ABI to do FFI
  • tagged union
  • closures (maybe)
  • modules
  • parse c header file to make pseudo-module for c ffi
  • implicit currying functions
  • separate type checking into its own step (and make errors have source code row/column labels)
  • type inference
  • find mechanism to do RAII (destructors / defer)
  • use block (reference)
  • static reflection

Super Long Term

  • lsp
  • monads
  • self hosting
  • asm optimizations (using linear IR) -- maybe use llvm but preferrably not idk yet

haddr-lang's People

Contributors

nikhilc1527 avatar

Stargazers

 avatar  avatar  avatar Abhiram Annaluru avatar  avatar  avatar Anish C 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.