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: 2 months ago
JSON representation
Programming language in development
- Host: GitHub
- URL: https://github.com/rsms/wlang
- Owner: rsms
- License: isc
- Created: 2020-01-04T04:45:03.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-02-05T02:10:11.000Z (almost 4 years ago)
- Last Synced: 2024-10-14T18:42:55.844Z (3 months ago)
- Topics: assembler, compiler, programming-language
- Language: C
- Homepage:
- Size: 1.47 MB
- Stars: 47
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
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`.