Basic syntax checker in C, starting with balanced brackets and moving towards balanced quotes, dealing with escape sequences and comments