On 21 March 2011 16:58, drdaveg <span dir="ltr"><<a href="mailto:drdaveg@gmail.com">drdaveg@gmail.com</a>></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;">
I have run into a number of problems using a domain specific language (DSL)<br>
on processing DSLR files. My biggest frustration - and one I am hoping<br>
people can provide a work-around or guidance on - is that often the Eclipse<br>
plug-in does not allow the DRL pane, showing the DRL file, to be clicked on<br>
(and shown.) This sometimes happens when there are no compilation errors:<br>
the DLR file is simply not being generated.<br>
<br>
I have run into issues where an error like "parsing problem: contact the<br>
support team" occurs or a null pointer exception occurs, but no error is<br>
shown. My approach has been to make small changes in working DSL files<br>
(i.e., describing the translations) at a time, to minimize impact. Can<br>
anyone offer better approaches to building the DSL grammar?<br></blockquote><div><br>The upcoming version 5.2 will have better error reporting and new debug<br>
facilities for DSL/DSLR expansion. Also, the substitution of partial names for<br>binding variables should work with this new version.<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;">
<br>
On a related issue, many documents cite using DSL and regular expressions<br>
for code-rewriting and - while I find documentation on antlr 3 masks for<br>
doing some regular expressions - is the common re-writing task of using "or"<br>
- as in<br>
<br>
My object (Car|Bus|Buyer|Salesman)<br>
<br>
supported in any way other than seperate lines for "object Car", "object<br>
Bus", etc? Thanks!<br></blockquote><div><br>I can't quite follow you here. From a user's point of view, antlr3 has nothing<br>to do with DSL. If you could provide examples in DRL for what you want to<br>express in DSL/DSLR?<br>
<br>-W<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://drools-java-rules-engine.46999.n3.nabble.com/Parsing-problems-using-a-DSL-tp2710491p2710491.html" target="_blank">http://drools-java-rules-engine.46999.n3.nabble.com/Parsing-problems-using-a-DSL-tp2710491p2710491.html</a><br>
Sent from the Drools - User mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</font></blockquote></div><br>