I am using the syntax package, and I want to define a grammar like:
Rule = Head -> Tail
but when I do this:
\begin{grammar}
<rule> ::= <head> `$\rightarrow$' <tail>
I get an error saying that Missing $ was inserted.
How can I single-quote a math character?
Thanks
\hbox{'$\rightarrow$'}
(with a left quote on the left) but if that doesn't work please (always) edit your question to have a complete small document that shows the problem.