|
|
|
|
|
by goalexboxer
2713 days ago
|
|
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! |
|
if the goal is to have them writing C-style C++ code, why not just use C? or if the goal is to teach C++, why start with only the features available in C?
I've been a TA for classes in both C and C++, and I think we ultimately do a disservice to these students by not treating these languages more separately.