title: Extending javascript with keywords
body: <p>My Google-ing on this has been unsuccessful, so here's the question:</p>
  
  <p>I am wondering if it is possible to add my own keywords to extend the JavaScript language in a given framework.</p>
  
  <p>For example </p>
  
  <pre><code>Object1 extends Object2
  </code></pre>
  
  <p>in the code would result in executing this method</p>
  
  <pre><code>inherit(Object1, Object2)
  </code></pre>
  
  <p>Where inherit is a function that takes care of copying the prototype, adding the parent's constructor, etc..</p>
  
  <p>Is this doable? If so, how ? If not, any other nice way of doing this?</p>
  
  <p>Thanks.</p>