FIXED: Various fixes to SW grammar, mainly making the parse direction explicit.