oftn-oswg / coca

An implementation of C in JavaScript.
Other
10 stars 3 forks source link

The Coca C Compiler

Coca is meant to be a C implementation in the JavaScript environment. Code is not interpreted, but rather compiled (or translated) into JavaScript code.

Purpose

There are many uses for having a C implementation written in JavaScript. The web is quickly becoming a platform that is much more than what it used to be. Online development environments can make use of Coca to do syntactic validation, semantic validation, or to provide a helpful debugger. Subsequently, this can be useful for porting C applications to the web. This project is designed with the goal of having understandable diagnostics that link to the C specification, a simple and understandable codebase, and a modular library-based architecture.

Roadmap