This repository is old. It has been officially moved to https://git.tebibyte.media/arf/arf!
This repository has been archived on 2022-08-29. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
Sasha Koshka e42bad5810 Identifiers can no longer have arguments in them
Previously [[something something].something] would have been syntactically
correct. This can lead to ugly and cluttered syntax due to violating the one
thing per line guideline (that I've forgotten to write down) and would make the
parser incredibly convoluded. Member selection in arf is not an operator and
should not be treated as such. It would be much better to just use variables for
this.
2022-08-15 17:05:57 -04:00
arfc Replaced all occurences of github.com with git.tebibyte.media 2022-08-12 10:21:36 -05:00
examples Initial commit 2022-08-03 11:09:00 -04:00
file Fixed issue with Error.Error not positioning marker correctly 2022-08-15 14:30:54 -04:00
lexer Added a comma token 2022-08-15 14:50:09 -04:00
parser Identifiers can no longer have arguments in them 2022-08-15 17:05:57 -04:00
tests Added a comma token 2022-08-15 14:50:09 -04:00
types Added ToString methods for syntax tree nodes 2022-08-15 14:04:57 -04:00
.gitignore Added gitignore 2022-08-08 03:08:20 -04:00
go.mod Replaced all occurences of github.com with git.tebibyte.media 2022-08-12 10:21:36 -05:00
LICENSE Added licesnse 2022-08-09 01:02:03 -04:00
main.go Replaced all occurences of github.com with git.tebibyte.media 2022-08-12 10:21:36 -05:00
README.md Add some more guidelines to readme 2022-08-12 20:32:58 -04:00

ARF

The ARF programming language.

This is still under development and does not compile things yet. Once complete, it will serve as a temporary compiler that will be used to write a new one using the language itself.

The old repository can be found here.

ARF is a low level language with a focus on organization, modularization, and code clarity. Behind it's avant-garde syntax, its basically just a more refined version of C.

A directory of ARF files is called a module, and modules will compile to object files (one per module) using C as an intermediate language (maybe LLVM IR in the future).

Design aspects

These are some design goals that I have followed/am following:

  • The standard library will be fully optional, and decoupled from the language
  • The language itself must be extremely simple
  • Language features must be immutable (no reflection or operator overloading)
  • Prefer static over dynamic
  • Data must be immutable by default
  • Memory not on the stack must be allocated and freed manually
  • Language syntax must have zero ambiguity
  • The compiler should not generate new functions or complex logic that the user has not written

Planned features

  • Type definition through inheritence
  • Struct member functions
  • Go-style interfaces
  • Generics
  • A standard library (that can be dynamically linked)

Checklist

  • File reader
  • File -> tokens
  • Tokens -> syntax tree
  • Syntax tree -> semantic tree
  • Semantic tree -> C -> object file
  • Figure out HOW to implement generics
  • Create a standard library