Giter VIP home page Giter VIP logo

arf-old's Introduction


ARF

This is being rewritten.

Click here to go to the new repository.

All the dangerous fun of C, and you can do it in style.

Arf is an extremely modular, minimalist programming language. Its syntax and structure are designed to make writing a program feel like constructing a machine out of physical parts.

It uses syntactical indentation and everything must be indented with 8 spaces (the holy indentation size used in the Linux kernel).

What does arf stand for you ask? It doesn't, its just the sound that dogs make. So far, there have been no successful backgronymming attempts. Ciao has also been suggested as a name.

This does not compile code yet, it just partially parses it. I don't even have a language spec. Basically, don't expect a lot right now. Maybe expect a lot some time later though.

Here is some example code:

:arf
module main
author "Sasha Koshka"
require "io"
---

func rr main
        > argc:Int
        > argv:{String}
        < status:Int
        ---
        io.println "Hello, world!"

Isn't that neat? Its like a document.

Roadmap

These are things, in order, that have already been done or are planned:

  • Lexer
  • Parser
  • AST (I think this is done)
  • Semantic analysis
  • Transpiling to C
  • Compile any file with options by passing command line arguments
  • Rewrite compiler in Arf (this current one is a mess...)
  • Convert Arf module to Arf header file (so we can have shared libraries)
  • Convert C header file to Arf header file
  • Modular Arf standard library (written in Arf)
    • I/O
    • String manipulation
    • Memory management
    • Networking
    • Multithreading

These aren't necessary for making Arf a full-fledged language, but they would make it more useful:

  • Produce LLVM IR instead of C
  • Option to use C stdlib for memory allocation backend, for compatibility with libraries written in C
  • Rewrite some coreutils
  • Make sure it works with essential libraries
    • XCB
    • Wayland
    • OpenGL
    • Cairo
    • GTK
    • OpenSSL (or similar)

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.