This repository has been archived on 2025-11-10. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Aryadev Chavali 15d39dcfe7 Reworked lexer to deal with invalid type suffixes
Now ~push.magic~ will result in an error about it being an invalid
type suffix.
2024-07-03 16:55:19 +01:00
2024-06-01 01:18:56 +01:00
2024-06-01 01:18:56 +01:00
2023-11-01 18:20:03 +00:00
2023-10-15 01:25:24 +01:00
2024-07-03 16:55:19 +01:00
2024-06-01 14:37:06 +01:00

Aryadev's Assembly Language (AAL)

A compiler for Aryadev's Assembly Language, an assembly-like programming language, which targets the AVM.

How to build

Requires GNU make and a compliant C++17 compiler. Code base has been tested against g++ and clang, but given how the project has been written without use of GNU'isms (that I'm aware of) it shouldn't be an issue to compile using something like tcc or another compiler (look at here to change the compiler).

To build everything simply run make. This will build:

  • Assembler executable which assembles compliant assembly code to VM bytecode
  • Assembly examples which provide some source code examples on common programs one may write. Use this to figure out how to write compliant AAL. Also a good test of both the VM and assembler.

You may also build each component individually through the corresponding recipe:

  • make asm
  • make examples

Lines of code

Files Lines Words Bytes
./asm/base.hpp 21 68 472
./asm/lexer.cpp 565 1448 14067
./asm/base.cpp 33 89 705
./asm/lexer.hpp 106 204 1757
./asm/preprocesser.cpp 218 574 5800
./asm/preprocesser.hpp 62 147 1360
./asm/main.cpp 148 414 3791
total 1153 2944 27952
Description
No description provided
Readme 401 KiB
Languages
C++ 93.8%
Makefile 6.2%