On 5 December 2010 11:23, Mark Proctor <span dir="ltr">&lt;<a href="mailto:mproctor@codehaus.org">mproctor@codehaus.org</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">


  
    
    
  
  <div text="#000000" bgcolor="#ffffff"><div class="im">
    On 04/12/2010 20:49, Michael Anstis wrote:
    <blockquote type="cite">None here.<br>
      <br>
      Longer term, I wonder whether our DSL syntax is too weak?<br>
      <br>
      Even the ability to declare blocks would be nicer than long lines
      (and line split markers):-<br>
    </blockquote></div>
    I&#39;d rather see us progress go a constraint and data driven
    templating system. I&#39;ll discuss it more with you when we meet up.
    The DSLs are just sentence templates and we needmore than that.<br><font color="#888888">
    <br></font></div></blockquote><div><br>So what? Leave the current DSL with all its deficiencies and bugs?<br>-W<br><br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div text="#000000" bgcolor="#ffffff"><font color="#888888">
    Mark</font><div><div></div><div class="h5"><br>
    <blockquote type="cite"><br>
      <span style="font-family: courier new,monospace;">then [Book the
        customer for the flight]</span><br style="font-family: courier new,monospace;">
      <span style="font-family: courier new,monospace;">    {</span><br style="font-family: courier new,monospace;">
      <span style="font-family: courier new,monospace;">       
        $f.setAvailable( $f.getAvailable() - 1 );</span><br style="font-family: courier new,monospace;">
      <span style="font-family: courier new,monospace;">        update(
        $f );</span><br style="font-family: courier new,monospace;">
      <span style="font-family: courier new,monospace;">        Booking
        booking = new Booking();</span><br style="font-family: courier new,monospace;">
      <span style="font-family: courier new,monospace;">       
        booking.setCustomer( $r.getCustomer() );</span><br style="font-family: courier new,monospace;">
      <span style="font-family: courier new,monospace;">       
        booking.setFlight( $f );</span><br style="font-family: courier new,monospace;">
      <span style="font-family: courier new,monospace;">        insert(
        booking );</span><br style="font-family: courier new,monospace;">
      <span style="font-family: courier new,monospace;">    }</span><br style="font-family: courier new,monospace;">
      <br>
      <br>
      <div class="gmail_quote">On 4 December 2010 18:33, Wolfgang Laun <span dir="ltr">&lt;<a href="mailto:wolfgang.laun@gmail.com" target="_blank">wolfgang.laun@gmail.com</a>&gt;</span>
        wrote:<br>
        <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
          Currently each entry must be a single line of text. This
          results in long lines, especially on the RHS.<br>
          <br>
          I have experimentally inserted a transformation of the DSL
          text (in  DSLTokenizedMappingFile)<br>
          which converts &#39;\&#39;+EOL on the fly to a space. (The passed-in
          reader is read into a buffer, &#39;\&#39;+EOL<br>
          is translated to space, and EOLs are inserted later to
          readjust the line number.) In a text editor,<br>
          I can now write, e.g.,<br>
          <br>
          then][][Bb]ook the customer for the flight=\<br>
            $f.setAvailable( $f.getAvailable() - 1 );\<br>
            update( $f );                            \<br>
            Booking booking = new Booking();         \<br>
            booking.setCustomer( $r.getCustomer() ); \<br>
            booking.setFlight( $f );                 \<br>
            insert( booking );<br>
          <br>
          Of course, the DSL editor will not preserve this, but future
          development might provide more<br>
          convenient editing there, too.<br>
          <br>
          Any objections?<br>
          <font color="#888888">-W<br>
          </font><br>
          _______________________________________________<br>
          rules-dev mailing list<br>
          <a href="mailto:rules-dev@lists.jboss.org" target="_blank">rules-dev@lists.jboss.org</a><br>
          <a href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>
          <br>
        </blockquote>
      </div>
      <br>
      <pre><fieldset></fieldset>
_______________________________________________
rules-dev mailing list
<a href="mailto:rules-dev@lists.jboss.org" target="_blank">rules-dev@lists.jboss.org</a>
<a href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a>
</pre>
    </blockquote>
    <br>
  </div></div></div>

<br>_______________________________________________<br>
rules-dev mailing list<br>
<a href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>
<br></blockquote></div><br>