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 ...
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 ...
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 ...
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 ...
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 ...
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:
...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
parsing × 1346python × 318
c++ × 179
java × 176
c# × 155
performance × 133
strings × 133
c × 131
beginner × 113
javascript × 97
python-3.x × 86
regex × 76
xml × 66
json × 59
csv × 53
php × 48
haskell × 48
math-expression-eval × 48
object-oriented × 42
file × 40
html × 38
algorithm × 36
reinventing-the-wheel × 34
rust × 34
datetime × 32