Skip to main content
3 votes

S-expression parser in Rust

Your questions Is there a nice way to compile that regex once and store it somewhere? Yep, OnceLock: ...
STerliakov's user avatar
  • 2,072
3 votes

Operator-precedence calculator in C

Strongly consider using braces consistently. In reduce notably you have an if without curly braces, and then curly braces around ...
Chris's user avatar
  • 4,489
2 votes

Lisp expression parser

Let's avoid some repetition by defining a list of sample cases and then looping over that. ...
Chris's user avatar
  • 4,489
1 vote

Lisp expression parser

Overview The code layout is good, and you used meaningful names for many of the functions and variables. Well done. Here are some minor coding style suggestions. Documentation It's great that your ...
toolic's user avatar
  • 15.8k
1 vote

Infix epression evaluation

Notes You've used the ;; token extensively in your code. A well-formed OCaml program has no need for this, as it is composed only of top-level bindings/definitions, ...
Chris's user avatar
  • 4,489

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