2 ms·
Yes, I meant implementing it as specified for C23 which was done for compatibility with C++, although I do prefer the underscores. Maybe that’s a better idea,
by AlbertoGP 4y ago
Yes, I meant implementing it as specified for C23 which was done for compatibility with C++, although I do prefer the underscores.
Maybe that’s a better idea, implement it with underscores in Cedro as it does not need C++ compatibility.
Edit: alright, it works. I also extended the parser to accept the apostrophe as part of number tokens. The only thing it does is to remove the underscores when writing.
I might need another command line option to specify whether the output should be C23:
1_234_567 → 1'234'567
or pre-C23:
1_234_567 → 1234567
1'234'567 → 1234567