A programming language inspired by Typescript, Assembly and C.
Tac is currently only being developed by me, Noah.
The reason I am creating Tac is because I wanted to teach my self how to write a compiler.
Tac is not to be taken seriously in any kind of way at this moment, since it is just another toy project of mine.
Here is "Hello World" in Tac:
main = (argc: int, argv: Array<string>):int => {
print("Hello World\n");
return 0;
};
To build the compiler you will need:
- gcc - GNU Compiler Collection ( C compiler )
The compiler currently has these dependencies:
- as (1) - the portable GNU assembler.
- ld (1) - The GNU linker
- xxdi
To build the Tac compiler, simply run:
makeThis will produce the
./tac.outbinary which is used to compile Tac-code.
To compile Tac-code, simply use the generated binary from the build-step:
./tac.out <name-of-file>.tacThis will generate a
./a.outfile which is the compiled executable of your source code.
Note Tac only supports building 32-bit executables at the moment.
Some of these are in progress and not marked as checked
- Implement variable assignments
- Implement function definitions
- Implement function calls
- Implement conditions
- Implement addition (arithmetic)
- Implement multiplication (arithmetic)
- Implement subtraction (arithmetic)
- Implement division (arithmetic)
- Implement while-loops
- Implement for-loops
- Implement floats
- Implement integers
- Implement main method
- Implement objects
- Implement arrays
- Implement enums
- Implement comments
- Implement C-header parser
- Implement calling functions from shared libraries (.so, .obj, .a, ...)
- Add 64-bit support
- Implement type guards in the compiler
- Get rid of "GNU Assembler" dependency
- Get rid of "GNU Linker" dependency
- Get rid of "xxdi" dependency