Why is fputs returning 1?
1 is a non-negative number. fputs() return nonnegative numbers on success...
Show HN: Bic – a C interpreter and API explorer
11–20 of 28 posts
Re: Show HN: Bic – a C interpreter and API explorer
#12Reminds me of CERN’s ROOT which has C/C++ interpreter https://root.cern.ch/
Re: Show HN: Bic – a C interpreter and API explorer
#13I love that you have to #include how to exit :)
I suppose you could always quit abruptly, though...
Re: Show HN: Bic – a C interpreter and API explorer
#14Re: Show HN: Bic – a C interpreter and API explorer
#15It lacks the syntax highlight. They could have used tree-sitter[1] for parsing, then the online highlight would be easier to implement. [1] https://github.com/tree-sitter/tree-sitter
Re: Show HN: Bic – a C interpreter and API explorer
#16Re: Show HN: Bic – a C interpreter and API explorer
#17Re: Show HN: Bic – a C interpreter and API explorer
#18It lacks the syntax highlight. They could have used tree-sitter[1] for parsing, then the online highlight would be easier to implement. [1] https://github.com/tree-sitter/tree-sitter
I'll take a look at tree-sitter. If I get syntax highlighting for free then I'll take that!
Re: Show HN: Bic – a C interpreter and API explorer
#19Here's a link to a brief description:
https://books.google.com/books?id=fHghpJa3va4C&lpg=PA167&ots...
And, yes, I paid the $295 for it.
Re: Show HN: Bic – a C interpreter and API explorer
#20You unfortunately need to make an account to see the pages. It was heavily attacked at one time and that was the admin's solution.
Interactive C Environments http://www.softwarepreservation.org/projects/interactive_c