"src/brainfuck.c": Add checks for syntax errors.

  - Extract loop-command-matching stuff into its own function.
  - Implement pre-evaluation syntax error checks.
Do some refactorin'.