4 ms·
This is my hobby project of a C23 Front End. One of its unique features is the transpiler that can generate readable code, preserving macros and formatting. S
by thradams 4y ago
This is my hobby project of a C23 Front End.
One of its unique features is the transpiler that can generate readable code, preserving macros and formatting.
See it online:
http://thradams.com/web3/playground.html http://thradams.com/web3/playground.html
- rurban 4y agoCaught a typo already :)
- thradams 4y agothanks! :D
- cygx 4y agoWhile we're at it, it's "analysis", not "analisys"...
- nilsb 4y agoAlso, there's "different" vs. "diferent" in the examples: source:2:2: error: _Static_assert failed "types are diferent" 2 |static_assert(typeid(a) == typeid(double [10]), "types are diferent"); |^
- golem14 4y agoWow, the jackals are out in full force tonight ;) Seth Meyers must have been offline for a while ?
- rch 4y agoTypo in the title as well - although I like the idea that a programmer in the future will search for a contemporary feature called a 'compiler frond' and happen upon this discussion.
- thradams 4y agoWow this is really bad! This was my first topic here in hacker news. I wasn't expecting all this traffic. Good to see and find more people interested in this kind of project. I will be more careful in the future.
- bee_rider 4y agoEh, users here just like to find things to complain about. If you didn't have some little typos, the thread would just be bikesheding. And, too much care and you'll never share. It is a hobby project anyway, it doesn't need to be perfect, and it was good to share either way. People are clearly interested!
- rch 4y agoAgreed!
- gus_massa 4y ago> Wow this is really bad! People making comment, even about typos means that people find the project interesting enough to read it and try to write a helpful comment. This is a great first topic in HN.
- asveikau 4y agoTried this: #include <stdio.h> int main() { puts("hello world"); return 0; } Got: source:5:4: error: not found 'puts' 5 | puts("hello world"); |
- thradams 4y agoThe declaration of puts is missing at the stdio.h used by the web version. (If you output preprocessed you will see the declarations are there) I will added it. Thanks. Meanwhile you can add: int puts( const char *str );