First try of a smie grammar.

Too detailed, non-working...