VHDL Help - Controlling A Stepper Motor Driver


I am very new with VHDL and FPGAs. I am using the XEM6010 LX45. I am having trouble getting my code to synthesize.
My code is meant to drive a stepper motor driver. I am using Sparkfun’s Big Easy Driver. This driver requires 1 usec between pulses.
My goal is that whenever a lever is pressed to logic 0, the FPGA will turn a pin on and off, 1 usec apart, 20 times. 20 times gives the
degrees I want the stepper motor to turn. 1.8 deg x 20 steps = 36 degrees. I have attached my VHDL code and constraints file as a txt file.
Here errors I receive :

ERROR:HDLCompiler:806 - “removed”/main.vhd" Line 36: Syntax error near “if”.
ERROR:HDLCompiler:806 - “removed”/main.vhd" Line 43: Syntax error near “if”.
ERROR:HDLCompiler:806 - “removed”/main.vhd" Line 47: Syntax error near “loop”.
ERROR:ProjectMgmt - 3 error(s) found while parsing design hierarchy.

If you could help clarify what I am doing wrong with my code, I’d greatly appreciate it.
Thanks, HTT