Skip to content

KennedyTedesco/uai-lang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UAI Programming Language

Test Status

(A working in progress).

UAI is a C-like scripting language.

Goals of this project:

  • Learn C and memory;
  • Learn how to write a compiler and a stack virtual machine to run bytecodes;
  • It doesn't intend to be the safest implementation, as this requires a lot of c knowledge (and, you know, achieving a secure code with C is not that trivial).

TODO:

  • Lexer
  • Parser
  • Compiler (Bytecode generation)
  • VM

Future scope:

  • Unicode support for strings (a hard one :P)

Compiling

This project uses Meson (CMake is good, but Meson, besides its powerful, is more friendly with newcomers).

So, the first thing you need to do after cloning this repo is:

$ meson builddir

It will generate the buildir, then you can run the tests:

$ meson test -C builddir/ -v 

Testing using Valgrind (a tool to find memory leaks):

$ meson test -C builddir/ -v --wrap='valgrind --leak-check=full'

Contributing

Feel free to send pull requests and/or tips. =D