Comment

Comment by goalexboxer

The repo of the original interpreter: https://github.com/felixhao28/JSCPP

Which notable features are not implemented yet?

    Goto statements
    Object-oriented features
    Namespaces
    Multiple files support
The target audience would consists in students trying simple algorithms. By the end of the high school, students are only using very basic C-syntax: variables, arrays, functions, and a couple of functions from the standard library.

Some partial implementations: iostream (only cin and cout and endl) cmath cctype cstring cstdio (partial) cstdlib (partial)

Other includes could be added too.

What I am trying to highlight is if there is any possibility to increase the visual feedback for students heading first to programming.

Something more like an interpretor would be more suitable in this case, but the wasm compilation doesn't seem too slow though. Thanks for this demo!

parent goalexboxer 7 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton