<FONT face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size=2><P>Hi guys, </P><P>&nbsp; </P><P>While I was trying out DSL, I can get my codes to run successfully, but I cannot get the DroolsCompilerAntTask to build the package. It gives the following errors.. </P><P>If the DSL has the condition of [then]Print = System.out.println("printing \#123"); <BR><FONT color=#ff0000>[compiler] [2,42]: [ERR 101] Line 2:42 no viable alternative at input ''[1,0]: [ERR 101] Line 1:0 no viable alternative at input '[' </FONT></P><P><FONT color=#000000>Did I escape the # correctly? </FONT></P><P>When I removed the # and tried to build again (the above error is gone), the compiler gives the same type, but&nbsp;another error. <BR><FONT color=#ff0000>[compiler] [1,0]: [ERR 101] Line 1:0 no viable alternative at input ''[1,0]: [ERR 101] Line 1:0 no viable alternative at input '[' </FONT></P><P>But my DSL only contains 2 lines. <BR>[when]True = eval(true) <BR>[then]Print = System.out.println("printing 123"); </P><P>&nbsp; </P><P>Btw I am using Drools 5.1.0.M1 and my build.xml is as below.. </P><P>&nbsp; </P><DIV class=e><SPAN class=b><STRONG><FONT color=#ff0000 face="Default Monospace,Courier New,Courier,monospace">&nbsp; </FONT></STRONG></SPAN><FONT color=#0000ff><SPAN class=m>&lt;? </SPAN><SPAN class=pi>xml version="1.0" encoding="UTF-8" </SPAN><SPAN class=m>?&gt; </SPAN></FONT></DIV><DIV class=e><DIV style="TEXT-INDENT: -2em; MARGIN-LEFT: 1em" class=c><A class=b href="https://asia-ml01.asia.csc.com/mail/jng42.nsf/0/B48E8665C2655A376525769C002BB6ED/$File/build.xml?OpenElement&amp;FileName=build.xml#" target=blank><STRONG><FONT color=#ff0000 face="Default Monospace,Courier New,Courier,monospace">- </FONT></STRONG></A><SPAN class=m><FONT color=#0000ff>&lt; </FONT></SPAN><FONT color=#990000><SPAN class=t>project </SPAN><SPAN class=t>default </SPAN></FONT><SPAN class=m><FONT color=#0000ff>=" </FONT></SPAN><B>build </B><SPAN class=m><FONT color=#0000ff>" </FONT></SPAN><SPAN class=t><FONT color=#990000>name </FONT></SPAN><SPAN class=m><FONT color=#0000ff>=" </FONT></SPAN><B>RuleProject </B><FONT color=#0000ff><SPAN class=m>" </SPAN><SPAN class=m>&gt; </SPAN></FONT></DIV><DIV><DIV class=k><SPAN><A style="VISIBILITY: hidden" class=b target=blank><STRONG><FONT color=#ff0000 face="Default Monospace,Courier New,Courier,monospace">- </FONT></STRONG></A><SPAN class=m><FONT color=#0000ff>&lt;!-- </FONT></SPAN></SPAN><SPAN class=ci><FONT size=2 face="Default Monospace,Courier New,Courier,monospace"><FONT color=#888888 size=3>&nbsp;Uncomment this for Maven Runner <BR></FONT></FONT></SPAN><SPAN class=b><STRONG><FONT color=#ff0000 face="Default Monospace,Courier New,Courier,monospace">&nbsp; </FONT></STRONG></SPAN><FONT color=#0000ff><SPAN class=m>--&gt; </SPAN></FONT></DIV><DIV class=e><DIV style="TEXT-INDENT: -2em; MARGIN-LEFT: 1em" class=c><A class=b href="https://asia-ml01.asia.csc.com/mail/jng42.nsf/0/B48E8665C2655A376525769C002BB6ED/$File/build.xml?OpenElement&amp;FileName=build.xml#" target=blank><STRONG><FONT color=#ff0000 face="Default Monospace,Courier New,Courier,monospace">- </FONT></STRONG></A><SPAN class=m><FONT color=#0000ff>&lt; </FONT></SPAN><FONT color=#990000><SPAN class=t>path </SPAN><SPAN class=t>id </SPAN></FONT><SPAN class=m><FONT color=#0000ff>=" </FONT></SPAN><B>drools.classpath </B><FONT color=#0000ff><SPAN class=m>" </SPAN><SPAN class=m>&gt; </SPAN></FONT></DIV><DIV><DIV class=e><DIV style="TEXT-INDENT: -2em; MARGIN-LEFT: 1em" class=c><A class=b href="https://asia-ml01.asia.csc.com/mail/jng42.nsf/0/B48E8665C2655A376525769C002BB6ED/$File/build.xml?OpenElement&amp;FileName=build.xml#" target=blank><STRONG><FONT color=#ff0000 face="Default Monospace,Courier New,Courier,monospace">- </FONT></STRONG></A><SPAN class=m><FONT color=#0000ff>&lt; </FONT></SPAN><FONT color=#990000><SPAN class=t>fileset </SPAN><SPAN class=t>dir </SPAN></FONT><SPAN class=m><FONT color=#0000ff>=" </FONT></SPAN><B>D:/Drools/runtime </B><FONT color=#0000ff><SPAN class=m>" </SPAN><SPAN class=m>&gt; </SPAN></FONT></DIV><DIV><DIV class=e><DIV style="TEXT-INDENT: -2em; MARGIN-LEFT: 1em"><SPAN class=b><STRONG><FONT color=#ff0000 face="Default Monospace,Courier New,Courier,monospace">&nbsp; </FONT></STRONG></SPAN><SPAN class=m><FONT color=#0000ff>&lt; </FONT></SPAN><SPAN class=t><FONT color=#990000>include </FONT></SPAN><SPAN class=t><FONT color=#990000>name </FONT></SPAN><SPAN class=m><FONT color=#0000ff>=" </FONT></SPAN><B>*.jar </B><FONT color=#0000ff><SPAN class=m>" </SPAN><SPAN class=m>/&gt; </SPAN></FONT></DIV></DIV><DIV><SPAN class=b><STRONG><FONT color=#ff0000 face="Default Monospace,Courier New,Courier,monospace">&nbsp; </FONT></STRONG></SPAN><SPAN class=m><FONT color=#0000ff>&lt;/ </FONT></SPAN><SPAN class=t><FONT color=#990000>fileset </FONT></SPAN><SPAN class=m><FONT color=#0000ff>&gt; </FONT></SPAN></DIV></DIV></DIV><DIV class=e><DIV style="TEXT-INDENT: -2em; MARGIN-LEFT: 1em" class=c><A class=b href="https://asia-ml01.asia.csc.com/mail/jng42.nsf/0/B48E8665C2655A376525769C002BB6ED/$File/build.xml?OpenElement&amp;FileName=build.xml#" target=blank><STRONG><FONT color=#ff0000 face="Default Monospace,Courier New,Courier,monospace">- </FONT></STRONG></A><SPAN class=m><FONT color=#0000ff>&lt; </FONT></SPAN><FONT color=#990000><SPAN class=t>fileset </SPAN><SPAN class=t>dir </SPAN></FONT><SPAN class=m><FONT color=#0000ff>=" </FONT></SPAN><B>D:/Drools/runtime/lib </B><FONT color=#0000ff><SPAN class=m>" </SPAN><SPAN class=m>&gt; </SPAN></FONT></DIV><DIV><DIV class=e><DIV style="TEXT-INDENT: -2em; MARGIN-LEFT: 1em"><SPAN class=b><STRONG><FONT color=#ff0000 face="Default Monospace,Courier New,Courier,monospace">&nbsp; </FONT></STRONG></SPAN><SPAN class=m><FONT color=#0000ff>&lt; </FONT></SPAN><SPAN class=t><FONT color=#990000>include </FONT></SPAN><SPAN class=t><FONT color=#990000>name </FONT></SPAN><SPAN class=m><FONT color=#0000ff>=" </FONT></SPAN><B>*.jar </B><FONT color=#0000ff><SPAN class=m>" </SPAN><SPAN class=m>/&gt; </SPAN></FONT></DIV></DIV><DIV><SPAN class=b><STRONG><FONT color=#ff0000 face="Default Monospace,Courier New,Courier,monospace">&nbsp; </FONT></STRONG></SPAN><SPAN class=m><FONT color=#0000ff>&lt;/ </FONT></SPAN><SPAN class=t><FONT color=#990000>fileset </FONT></SPAN><SPAN class=m><FONT color=#0000ff>&gt; </FONT></SPAN></DIV></DIV></DIV><DIV class=e><DIV style="TEXT-INDENT: -2em; MARGIN-LEFT: 1em" class=c><A class=b href="https://asia-ml01.asia.csc.com/mail/jng42.nsf/0/B48E8665C2655A376525769C002BB6ED/$File/build.xml?OpenElement&amp;FileName=build.xml#" target=blank><STRONG><FONT color=#ff0000 face="Default Monospace,Courier New,Courier,monospace">- </FONT></STRONG></A><SPAN class=m><FONT color=#0000ff>&lt; </FONT></SPAN><FONT color=#990000><SPAN class=t>fileset </SPAN><SPAN class=t>dir </SPAN></FONT><SPAN class=m><FONT color=#0000ff>=" </FONT></SPAN><B>${basedir}/lib </B><FONT color=#0000ff><SPAN class=m>" </SPAN><SPAN class=m>&gt; </SPAN></FONT></DIV><DIV><DIV class=e><DIV style="TEXT-INDENT: -2em; MARGIN-LEFT: 1em"><SPAN class=b><STRONG><FONT color=#ff0000 face="Default Monospace,Courier New,Courier,monospace">&nbsp; </FONT></STRONG></SPAN><SPAN class=m><FONT color=#0000ff>&lt; </FONT></SPAN><SPAN class=t><FONT color=#990000>include </FONT></SPAN><SPAN class=t><FONT color=#990000>name </FONT></SPAN><SPAN class=m><FONT color=#0000ff>=" </FONT></SPAN><B>*.jar </B><FONT color=#0000ff><SPAN class=m>" </SPAN><SPAN class=m>/&gt; </SPAN></FONT></DIV></DIV><DIV><SPAN class=b><STRONG><FONT color=#ff0000 face="Default Monospace,Courier New,Courier,monospace">&nbsp; </FONT></STRONG></SPAN><SPAN class=m><FONT color=#0000ff>&lt;/ </FONT></SPAN><SPAN class=t><FONT color=#990000>fileset </FONT></SPAN><SPAN class=m><FONT color=#0000ff>&gt; </FONT></SPAN></DIV></DIV></DIV><DIV class=e><DIV style="TEXT-INDENT: -2em; MARGIN-LEFT: 1em"><SPAN class=b><STRONG><FONT color=#ff0000 face="Default Monospace,Courier New,Courier,monospace">&nbsp; </FONT></STRONG></SPAN><SPAN class=m><FONT color=#0000ff>&lt; </FONT></SPAN><SPAN class=t><FONT color=#990000>pathelement </FONT></SPAN><SPAN class=t><FONT color=#990000>location </FONT></SPAN><SPAN class=m><FONT color=#0000ff>=" </FONT></SPAN><B>target </B><FONT color=#0000ff><SPAN class=m>" </SPAN><SPAN class=m>/&gt; </SPAN></FONT></DIV></DIV><DIV><SPAN class=b><STRONG><FONT color=#ff0000 face="Default Monospace,Courier New,Courier,monospace">&nbsp; </FONT></STRONG></SPAN><SPAN class=m><FONT color=#0000ff>&lt;/ </FONT></SPAN><SPAN class=t><FONT color=#990000>path </FONT></SPAN><SPAN class=m><FONT color=#0000ff>&gt; </FONT></SPAN></DIV></DIV></DIV><DIV class=e><DIV style="TEXT-INDENT: -2em; MARGIN-LEFT: 1em"><SPAN class=b><STRONG><FONT color=#ff0000 face="Default Monospace,Courier New,Courier,monospace">&nbsp; </FONT></STRONG></SPAN><SPAN class=m><FONT color=#0000ff>&lt; </FONT></SPAN><SPAN class=t><FONT color=#990000>taskdef </FONT></SPAN><SPAN class=t><FONT color=#990000>name </FONT></SPAN><SPAN class=m><FONT color=#0000ff>=" </FONT></SPAN><B>compiler </B><SPAN class=m><FONT color=#0000ff>" </FONT></SPAN><SPAN class=t><FONT color=#990000>classname </FONT></SPAN><SPAN class=m><FONT color=#0000ff>=" </FONT></SPAN><B>org.drools.contrib.DroolsCompilerAntTask </B><SPAN class=m><FONT color=#0000ff>" </FONT></SPAN><SPAN class=t><FONT color=#990000>classpathref </FONT></SPAN><SPAN class=m><FONT color=#0000ff>=" </FONT></SPAN><B>drools.classpath </B><FONT color=#0000ff><SPAN class=m>" </SPAN><SPAN class=m>/&gt; </SPAN></FONT></DIV></DIV><DIV class=e><DIV style="TEXT-INDENT: -2em; MARGIN-LEFT: 1em" class=c><A class=b href="https://asia-ml01.asia.csc.com/mail/jng42.nsf/0/B48E8665C2655A376525769C002BB6ED/$File/build.xml?OpenElement&amp;FileName=build.xml#" target=blank><STRONG><FONT color=#ff0000 face="Default Monospace,Courier New,Courier,monospace">- </FONT></STRONG></A><SPAN class=m><FONT color=#0000ff>&lt; </FONT></SPAN><FONT color=#990000><SPAN class=t>target </SPAN><SPAN class=t>name </SPAN></FONT><SPAN class=m><FONT color=#0000ff>=" </FONT></SPAN><B>build </B><FONT color=#0000ff><SPAN class=m>" </SPAN><SPAN class=m>&gt; </SPAN></FONT></DIV><DIV><DIV class=e><DIV style="TEXT-INDENT: -2em; MARGIN-LEFT: 1em" class=c><A class=b href="https://asia-ml01.asia.csc.com/mail/jng42.nsf/0/B48E8665C2655A376525769C002BB6ED/$File/build.xml?OpenElement&amp;FileName=build.xml#" target=blank><STRONG><FONT color=#ff0000 face="Default Monospace,Courier New,Courier,monospace">- </FONT></STRONG></A><SPAN class=m><FONT color=#0000ff>&lt; </FONT></SPAN><FONT color=#990000><SPAN class=t>compiler </SPAN><SPAN class=t>srcdir </SPAN></FONT><SPAN class=m><FONT color=#0000ff>=" </FONT></SPAN><B>${eclipsepath}/src/main/rules </B><SPAN class=m><FONT color=#0000ff>" </FONT></SPAN><SPAN class=t><FONT color=#990000>tofile </FONT></SPAN><SPAN class=m><FONT color=#0000ff>=" </FONT></SPAN><B>${eclipsepath}/build/rules.pkg </B><SPAN class=m><FONT color=#0000ff>" </FONT></SPAN><SPAN class=t><FONT color=#990000>binformat </FONT></SPAN><SPAN class=m><FONT color=#0000ff>=" </FONT></SPAN><B>package </B><FONT color=#0000ff><SPAN class=m>" </SPAN><SPAN class=m>&gt; </SPAN></FONT></DIV><DIV><DIV class=e><DIV style="TEXT-INDENT: -2em; MARGIN-LEFT: 1em"><SPAN class=b><STRONG><FONT color=#ff0000 face="Default Monospace,Courier New,Courier,monospace">&nbsp; </FONT></STRONG></SPAN><SPAN class=m><FONT color=#0000ff>&lt; </FONT></SPAN><SPAN class=t><FONT color=#990000>include </FONT></SPAN><SPAN class=t><FONT color=#990000>name </FONT></SPAN><SPAN class=m><FONT color=#0000ff>=" </FONT></SPAN><B>*.dsl </B><FONT color=#0000ff><SPAN class=m>" </SPAN><SPAN class=m>/&gt; </SPAN></FONT></DIV></DIV><DIV class=e><DIV style="TEXT-INDENT: -2em; MARGIN-LEFT: 1em"><SPAN class=b><STRONG><FONT color=#ff0000 face="Default Monospace,Courier New,Courier,monospace">&nbsp; </FONT></STRONG></SPAN><SPAN class=m><FONT color=#0000ff>&lt; </FONT></SPAN><SPAN class=t><FONT color=#990000>include </FONT></SPAN><SPAN class=t><FONT color=#990000>name </FONT></SPAN><SPAN class=m><FONT color=#0000ff>=" </FONT></SPAN><B>*.dslr </B><FONT color=#0000ff><SPAN class=m>" </SPAN><SPAN class=m>/&gt; </SPAN></FONT></DIV></DIV><DIV><SPAN class=b><STRONG><FONT color=#ff0000 face="Default Monospace,Courier New,Courier,monospace">&nbsp; </FONT></STRONG></SPAN><SPAN class=m><FONT color=#0000ff>&lt;/ </FONT></SPAN><SPAN class=t><FONT color=#990000>compiler </FONT></SPAN><SPAN class=m><FONT color=#0000ff>&gt; </FONT></SPAN></DIV></DIV></DIV><DIV><SPAN class=b><STRONG><FONT color=#ff0000 face="Default Monospace,Courier New,Courier,monospace">&nbsp; </FONT></STRONG></SPAN><SPAN class=m><FONT color=#0000ff>&lt;/ </FONT></SPAN><SPAN class=t><FONT color=#990000>target </FONT></SPAN><SPAN class=m><FONT color=#0000ff>&gt; </FONT></SPAN></DIV></DIV></DIV><DIV><SPAN class=b><STRONG><FONT color=#ff0000 face="Default Monospace,Courier New,Courier,monospace">&nbsp; </FONT></STRONG></SPAN><SPAN class=m><FONT color=#0000ff>&lt;/ </FONT></SPAN><SPAN class=t><FONT color=#990000>project </FONT></SPAN><SPAN class=m><FONT color=#0000ff>&gt; </FONT></SPAN></DIV></DIV></DIV><P>&nbsp; </P><P>Appreciate any help.. Thanks!! </P></FONT>