https://github.com/source-academy/c-slang
C compiler that generates WebAssembly code, written in TypeScript
https://github.com/source-academy/c-slang
Last synced: 8 months ago
JSON representation
C compiler that generates WebAssembly code, written in TypeScript
- Host: GitHub
- URL: https://github.com/source-academy/c-slang
- Owner: source-academy
- Created: 2023-09-06T04:32:25.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2025-02-26T00:18:28.000Z (over 1 year ago)
- Last Synced: 2025-04-14T01:09:22.730Z (about 1 year ago)
- Language: TypeScript
- Homepage:
- Size: 22.5 MB
- Stars: 1
- Watchers: 5
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# c-slang
C compiler that generates WebAssembly code, written in TypeScript, intended for teaching C programming in a browser-only environment.
This repository consists of 2 subprojects:
- ctowasm: a C compiler that generates WebAssembly code, written in TypeScript, intended for teaching C programming in a browser-only environment.
_Refer to the [README](ctowasm/README.md) in the ctowasm project directory for more information on ctowasm_
- c-viz: a C code interpreter & visualizer
## Build Instructions
1. Ensure you are in the root of the repository
2. Install the c-viz submodule with `git submodule update --init`
3. Run `yarn install` to install dependencies
4. Run `yarn install-all` to install all dependencies of subprojects
5. Run `yarn build` to build the project
c-slang can then be published to npm by running `yarn publish`