Need Help cannot run Vagrant I get the Following error

When doing a “vagrant box add” or “vagrant init user/box” (actually any vagrant command) I get the following error, "Vagrantfile:23: syntax error, unexpected local variable or method, expecting `end’

accessing “localhost:8080” will access port 80 on…

                     ^~~~~~~~~

Can anyone help?