title: Is it, and if so why, wrong that these two regular grammars are different?
body: <p>I'm tasked with writing a regular grammar based on a regular expression.</p>
  
  <p>Given the regular expression <code>a*b</code> can be written as <code>S -&gt; b | aS</code></p>
  
  <p>Is it incorrect that <code>ba*</code> as a regular grammar is <code>S -&gt; b | Sa</code>?</p>
  
  <p>I'm told the correct answer is in fact <code>S -&gt; bA</code>, <code>A -&gt; ^| aA</code> but I don't see the difference myself.</p>
  
  <p>An explanation would be greatly appreciated!</p>