<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    On 05/12/2010 12:29, Wolfgang Laun wrote:
    <blockquote
      cite="mid:AANLkTi=O_i8kM+pGEMG47=2McVmeYisC2uOCv4FPeHMS@mail.gmail.com"
      type="cite">On 5 December 2010 11:23, Mark Proctor <span
        dir="ltr">&lt;<a moz-do-not-send="true"
          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'd rather see us progress go a constraint and data driven
            templating system. I'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>
        </div>
      </div>
    </blockquote>
    DSLs are just template fragments, with any luck we can figure out
    how they can fit into the larger picture of a more constrained and
    validated approach.<br>
    <br>
    We haven't planned anything yet, so really don't know. I just know
    that pure fragment templates, with no constraints no data driven
    suggestions, no validation is not an ideal long term approach.<br>
    <br>
    Also being OSS nothing ever dies as long as someone is out there
    using stuff and producing patches for it.<br>
    <br>
    Mark<br>
    <blockquote
      cite="mid:AANLkTi=O_i8kM+pGEMG47=2McVmeYisC2uOCv4FPeHMS@mail.gmail.com"
      type="cite">
      <div class="gmail_quote">
        <div>-W<br>
          <br>
          &nbsp;</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 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;">&nbsp;&nbsp;&nbsp;
                    {</span><br style="font-family: courier
                    new,monospace;">
                  <span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

                    $f.setAvailable( $f.getAvailable() - 1 );</span><br
                    style="font-family: courier new,monospace;">
                  <span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    update( $f );</span><br style="font-family: courier
                    new,monospace;">
                  <span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    Booking booking = new Booking();</span><br
                    style="font-family: courier new,monospace;">
                  <span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

                    booking.setCustomer( $r.getCustomer() );</span><br
                    style="font-family: courier new,monospace;">
                  <span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

                    booking.setFlight( $f );</span><br
                    style="font-family: courier new,monospace;">
                  <span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    insert( booking );</span><br style="font-family:
                    courier new,monospace;">
                  <span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;
                    }</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
                        moz-do-not-send="true"
                        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&nbsp; DSLTokenizedMappingFile)<br>
                      which converts '\'+EOL on the fly to a space. (The
                      passed-in reader is read into a buffer, '\'+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>
                      &nbsp; $f.setAvailable( $f.getAvailable() - 1 );\<br>
                      &nbsp; update( $f );&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \<br>
                      &nbsp; Booking booking = new Booking();&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \<br>
                      &nbsp; booking.setCustomer( $r.getCustomer() ); \<br>
                      &nbsp; booking.setFlight( $f );&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \<br>
                      &nbsp; 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 moz-do-not-send="true"
                        href="mailto:rules-dev@lists.jboss.org"
                        target="_blank">rules-dev@lists.jboss.org</a><br>
                      <a moz-do-not-send="true"
                        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 moz-do-not-send="true" href="mailto:rules-dev@lists.jboss.org" target="_blank">rules-dev@lists.jboss.org</a>
<a moz-do-not-send="true" 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 moz-do-not-send="true"
            href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a><br>
          <a moz-do-not-send="true"
            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 wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
rules-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-dev">https://lists.jboss.org/mailman/listinfo/rules-dev</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>