Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/rsms/wlang

Programming language in development
https://github.com/rsms/wlang

assembler compiler programming-language

Last synced: 3 months ago
JSON representation

Programming language in development

Lists

README

        

# wlang

Programming language in development

```txt
./dev.sh example/factorial.w
```

Notes:

- Implemented in C11.
- Uses dlmalloc instead of libc malloc, making it portable to wasm etc.
- `./dev.sh []` — build and run product (incremental)
- `./dev.sh -lldb []` — build and run product in debugger (incremental)
- `./dev.sh -analyze` — run incremental code analyzer on uncommited changes (incremental)
- `./build.sh` — build release product and exit
- `./build.sh -g` — build debug product and exit
- `./build.sh -analyze` — analyze entire project using ([Infer](https://fbinfer.com/))
- `./build.sh -test` — build & run all tests and generate code coverage reports.
- Debug products are built with Clang address sanitizer by default.
To disable asan/msan, edit the `build.in.ninja` file.

Requirements for building:

- [clang](https://clang.llvm.org/) version >=7
- [Ninja](https://ninja-build.org/) version >=1.2
- Bash or a bash-compatible shell, for running the build scripts
- [Python 3](https://www.python.org/) used for code generation
- [Infer](https://fbinfer.com/) used for code analysis (optional)

If you're on macOS, install everything you need with `brew install clang python ninja infer`.