<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
On 04/12/2010 20:49, Michael Anstis wrote:
<blockquote
cite="mid:AANLkTi=KBuopBw2gxzGmVX9Q8WU1KvhpsFw2-x62+_U9@mail.gmail.com"
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>
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>
<br>
Mark<br>
<blockquote
cite="mid:AANLkTi=KBuopBw2gxzGmVX9Q8WU1KvhpsFw2-x62+_U9@mail.gmail.com"
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"><<a moz-do-not-send="true"
href="mailto:wolfgang.laun@gmail.com">wolfgang.laun@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
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 '\'+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>
$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 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>