Skip to main content
9 votes
Accepted

Operator-precedence calculator in C

Organize your data I see one struct, the rest of your data is stored in several arrays, and pointers to pointers are passed around to access them. Try to organize ...
G. Sliepen's user avatar
5 votes

Simple JSON parser in lisp

(defun mk-scanner (s) (list :stream s :cursor 0)) Using a property list for your scanner type is pretty unusual. Normally in Common Lisp you'd use a structure or ...
Shawn's user avatar
  • 236
5 votes

Simple JSON parser in lisp

specification Please mention the URL of a JSON spec. near the top of this codebase. Extra points for mentioning the URL of some corpus of known-good and known-bad inputs you have tested against. EOF ...
J_H's user avatar
  • 32.3k
4 votes

Parsing strings indicating duration in seconds (e.g. "60", "60s", "1m", etc.)

time as a double? Certainly confusing to have double time as ...
chux - Reinstate Monica's user avatar
2 votes
Accepted

Parsing Lists: BIO 2024 Q2

This is clear, well-presented code; much better than the thrown-together hacks often seen as programming-challenge entries. We could perhaps make it even clearer by giving a name to ...
Toby Speight's user avatar
  • 78.7k
2 votes

Parsing strings indicating duration in seconds (e.g. "60", "60s", "1m", etc.)

Although the description says this will only be built for POSIX targets, it's a good idea to test that condition, as code tends to get re-used unexpectedly: ...
Toby Speight's user avatar
  • 78.7k

Only top scored, non community-wiki answers of a minimum length are eligible