title: Create a context free grammar for the sub-lang of java prototypes
body: <p>I am new to context free grammar and i've only learned stuff like left/rightmost derivation and G=(V, E, R ,S) so far. But the problem I'm trying to solve involves java prototype and I'm not very good at java. So I don't really know where to start.</p>
  
  <p>Give a context-free grammar for the sub-language of Java prototypes.</p>
  
  <pre><code>int myMethod();
  double myMethod(int x, double y);
  static double f(int x, double y, int z);
  public static double g();
  </code></pre>
  
  <p>These are methods and variables, how can I relate to things like S => Sa | e ? And what is the start symbol?</p>
  
  <p>Thank you!</p>