Syrup should wash out of any washable fabric, but the color might stain. This may not wash out. The restaurant should reimburse for dry cleaning or replacement, if washing is not an option or doesn't work.
What is the dress made of? If it's cotton, boiling it may shrink the dress. If it's a washable fabric, I suggest simply soaking it in cool water with a bit of detergent. Syrup is simply sugar water, and should dissolve easily in water. Any traces of oil (from accompanying sausages or whatever) should be taken care of by the detergent. Of course, if your dress is made of a non-washable fabric, then I'd suggest the services of a dry cleaner. Not the most economical way to clean, but certainly more frugal than purchasing a new dress!
Another option in addition to the one above. Place a claim with the the restaurants insurance co. for replacement value of the dress!
Boil it in a pot of hot water. Use a spoon to stir it a little and put a few drops of laundry soap in after you boil the dress for a few minutes.
Add your voice to the conversation. Click here to answer this question.