Well, it won&#39;t give you a proper line number for an error that&#39;s somewhere within a single range of \-escaped <br>newlines, but I reinsert the &quot;stolen&quot; newlines at the earliest possible moment. This ensures that line numbers<br>
in error messages are correct w.r.t. the start of a logical line.<br><br>-W<br><br><br><div class="gmail_quote">On 6 December 2010 21:00, Michael Neale <span dir="ltr">&lt;<a href="mailto:michael.neale@gmail.com">michael.neale@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;">only objection I would have is that the error numbers in the expanded syntax (should there be compile errors) would not line up with the source (which makes it slightly more annoying than it already is to sort out). <div>
<br>
</div><div>But as this thread goes on, perhaps some more holistic thought to what we want DSLv2 to be like is in order. </div><div><br><br><div class="gmail_quote"><div><div></div><div class="h5">On Sun, Dec 5, 2010 at 5:33 AM, Wolfgang Laun <span dir="ltr">&lt;<a href="mailto:wolfgang.laun@gmail.com" target="_blank">wolfgang.laun@gmail.com</a>&gt;</span> wrote:<br>

</div></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="h5">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></div></div><div class="im">_______________________________________________<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></div></blockquote></div><br><br clear="all"><br>-- <br>Michael D Neale<br>home: <a href="http://www.michaelneale.net" target="_blank">www.michaelneale.net</a><br>blog: <a href="http://michaelneale.blogspot.com" target="_blank">michaelneale.blogspot.com</a><br>


</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>