Re: [rules-users] Problem with \" while compiling DRL
Good Morning Fernando, Thanks a lot for your fast answer. Cédric 2007/4/24, Fernando Meyer <[EMAIL PROTECTED]>: Afternoon Cendric, on DRL files you can use single backslash, that means, forget my last email ;) This compiling error is caused by a bug in drools parser, fixed for 3.0.7 http://jira.jboss.com/jira/browse/JBRULES-757 You can checkout branches/3.0.x from subversion repository (http://anonsvn.labs.jboss.com/labs/jbossrules/ ) to correct this problem. regards On 4/24/07, Fernando Meyer <[EMAIL PROTECTED]> wrote: > > Good morning Cendric > > you must use \\ instead \, because the > single backslah is used as escape character. > > regards > > On 4/24/07, Cédric D'Inca <[EMAIL PROTECTED]> wrote: > > > Hi everyone, > > > > I am currently experimentating troubles compiling a DRL file with a \" > > character in it. > > I am using Drools libraries 3.0.4. > > I used a XLS decision table that, once compiled, gave me a DRL. The > > following lines are extracted from it. > > > > #From row number: 14 > > > > rule "Exemple 1 2006 10 10_14" > > > > salience 65522 > > when > > Ctx:MyObject() > > eval(Ctx.GetPrp("TEST").getValue().equals("GER")) > > then > > Ctx.SetPrp("TRUC").setValue("test char \" test"); > > end > > > > #From row number: 15 > > > > The problem is that when compiled, an error is generated > > > > Unknown:0-1 mismatched token: [EMAIL PROTECTED],0,0='',<-1>,0:-1]; > > expecting type 'end' > > > > If I modify the decision table to put > > > > Ctx.SetPrp("TRUC").setValue("test char " test"); > > > > The result is the same > > > > Unknown:0-1 mismatched token: [EMAIL PROTECTED],0,0='',<-1>,0:-1]; > > expecting type 'end' > > > > > > So it means that \" is not understood, however, if I put \z, I get the > > following error: > > > > Rule compilation error Invalid escape sequence (valid ones are \b \t > > \n \f \r \" \' \\) > > > > Where it is written that \" should be understood. > > Any idea? > > > > Greetings, > > > > Cédric D'INCA > > > > ___ > > rules-users mailing list > > rules-users@lists.jboss.org > > https://lists.jboss.org/mailman/listinfo/rules-users > > > > > > > -- > Fernando Meyer -- Fernando Meyer ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Problem with \" while compiling DRL
Afternoon Cendric, on DRL files you can use single backslash, that means, forget my last email ;) This compiling error is caused by a bug in drools parser, fixed for 3.0.7 http://jira.jboss.com/jira/browse/JBRULES-757 You can checkout branches/3.0.x from subversion repository ( http://anonsvn.labs.jboss.com/labs/jbossrules/) to correct this problem. regards On 4/24/07, Fernando Meyer <[EMAIL PROTECTED]> wrote: Good morning Cendric you must use \\ instead \, because the single backslah is used as escape character. regards On 4/24/07, Cédric D'Inca <[EMAIL PROTECTED]> wrote: > Hi everyone, > > I am currently experimentating troubles compiling a DRL file with a \" > character in it. > I am using Drools libraries 3.0.4. > I used a XLS decision table that, once compiled, gave me a DRL. The > following lines are extracted from it. > > #From row number: 14 > > rule "Exemple 1 2006 10 10_14" > > salience 65522 > when > Ctx:MyObject() > eval(Ctx.GetPrp("TEST").getValue().equals("GER")) > then > Ctx.SetPrp("TRUC").setValue("test char \" test"); > end > > #From row number: 15 > > The problem is that when compiled, an error is generated > > Unknown:0-1 mismatched token: [EMAIL PROTECTED],0,0='',<-1>,0:-1]; expecting > type 'end' > > If I modify the decision table to put > > Ctx.SetPrp("TRUC").setValue("test char " test"); > > The result is the same > > Unknown:0-1 mismatched token: [EMAIL PROTECTED],0,0='',<-1>,0:-1]; expecting > type 'end' > > > So it means that \" is not understood, however, if I put \z, I get the > following error: > > Rule compilation error Invalid escape sequence (valid ones are \b \t \n > \f \r \" \' \\) > > Where it is written that \" should be understood. > Any idea? > > Greetings, > > Cédric D'INCA > > ___ > rules-users mailing list > rules-users@lists.jboss.org > https://lists.jboss.org/mailman/listinfo/rules-users > > -- Fernando Meyer -- Fernando Meyer ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Problem with \" while compiling DRL
Good morning Cendric you must use \\ instead \, because the single backslah is used as escape character. regards On 4/24/07, Cédric D'Inca <[EMAIL PROTECTED]> wrote: Hi everyone, I am currently experimentating troubles compiling a DRL file with a \" character in it. I am using Drools libraries 3.0.4. I used a XLS decision table that, once compiled, gave me a DRL. The following lines are extracted from it. #From row number: 14 rule "Exemple 1 2006 10 10_14" salience 65522 when Ctx:MyObject() eval(Ctx.GetPrp("TEST").getValue().equals("GER")) then Ctx.SetPrp("TRUC").setValue("test char \" test"); end #From row number: 15 The problem is that when compiled, an error is generated Unknown:0-1 mismatched token: [EMAIL PROTECTED],0,0='',<-1>,0:-1]; expecting type 'end' If I modify the decision table to put Ctx.SetPrp("TRUC").setValue("test char " test"); The result is the same Unknown:0-1 mismatched token: [EMAIL PROTECTED],0,0='',<-1>,0:-1]; expecting type 'end' So it means that \" is not understood, however, if I put \z, I get the following error: Rule compilation error Invalid escape sequence (valid ones are \b \t \n \f \r \" \' \\) Where it is written that \" should be understood. Any idea? Greetings, Cédric D'INCA ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- Fernando Meyer ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] Problem with \" while compiling DRL
Hi everyone, I am currently experimentating troubles compiling a DRL file with a \" character in it. I am using Drools libraries 3.0.4. I used a XLS decision table that, once compiled, gave me a DRL. The following lines are extracted from it. #From row number: 14 rule "Exemple 1 2006 10 10_14" salience 65522 when Ctx:MyObject() eval(Ctx.GetPrp("TEST").getValue().equals("GER")) then Ctx.SetPrp("TRUC").setValue("test char \" test"); end #From row number: 15 The problem is that when compiled, an error is generated Unknown:0-1 mismatched token: [EMAIL PROTECTED],0,0='',<-1>,0:-1]; expecting type 'end' If I modify the decision table to put Ctx.SetPrp("TRUC").setValue("test char " test"); The result is the same Unknown:0-1 mismatched token: [EMAIL PROTECTED],0,0='',<-1>,0:-1]; expecting type 'end' So it means that \" is not understood, however, if I put \z, I get the following error: Rule compilation error Invalid escape sequence (valid ones are \b \t \n \f \r \" \' \\) Where it is written that \" should be understood. Any idea? Greetings, Cédric D'INCA ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Problem with \" while compiling DRL
Ok, fixed that in 3.0.x branch. If you update and build, you shall not have the problem anymore. Regards, Edson 2007/3/28, Edson Tirelli <[EMAIL PROTECTED]>: Cedric, Don't mind. I already opened the ticket: http://jira.jboss.com/jira/browse/JBRULES-757 []s Edson 2007/3/28, Edson Tirelli <[EMAIL PROTECTED]>: > > > Cedric > > Yes, seems a lexer problem. Can you please open a JIRA? We will fix it > for the next maintenance release. > >Thank you > Edson > > 2007/3/28, D'Inca Cedric < [EMAIL PROTECTED]>: > > > > Hi everyone, > > > > > > > > I am currently experimentating troubles compiling a DRL file with a \" > > character in it. > > > > I used a XLS decision table that, once compiled, gave me a DRL. The > > following lines are extracted from it. > > > > > > > > #From row number: 14 > > > > rule "Exemple 1 2006 10 10_14" > > > > > > > > salience 65522 > > > > when > > > > Ctx:MyObject() > > > > eval(Ctx.GetPrp("TEST").getValue().equals("GER")) > > > > then > > > > Ctx.SetPrp("TRUC").setValue("test char \" test"); > > > > end > > > > > > > > #From row number: 15 > > > > > > > > The problem is that when compiled, an error is generated > > > > > > > > Unknown:0-1 mismatched token: [EMAIL PROTECTED],0,0='',<-1>,0:-1]; > > expecting type 'end' > > > > > > > > If I modify the decision table to put > > > > > > > > Ctx.SetPrp("TRUC").setValue("test char " test"); > > > > > > > > The result is the same > > > > > > > > Unknown:0-1 mismatched token: [EMAIL PROTECTED],0,0='',<-1>,0:-1]; > > expecting type 'end' > > > > > > > > So it means that \" is not understood, however, if I put \z, I get the > > following error: > > > > > > > > Rule compilation error Invalid escape sequence (valid ones are \b \t > > \n \f \r \" \' \\) > > > > > > > > Where it is written that \" should be understood. > > > > > > > > Any idea? > > > > > > > > Greetings, > > > > > > > > Cédric D'INCA > > > > ___ > > rules-users mailing list > > rules-users@lists.jboss.org > > https://lists.jboss.org/mailman/listinfo/rules-users > > > > > > > -- > Edson Tirelli > Software Engineer - JBoss Rules Core Developer > Office: +55 11 3124-6000 > Mobile: +55 11 9218-4151 > JBoss, a division of Red Hat @ www.jboss.com -- Edson Tirelli Software Engineer - JBoss Rules Core Developer Office: +55 11 3124-6000 Mobile: +55 11 9218-4151 JBoss, a division of Red Hat @ www.jboss.com -- Edson Tirelli Software Engineer - JBoss Rules Core Developer Office: +55 11 3124-6000 Mobile: +55 11 9218-4151 JBoss, a division of Red Hat @ www.jboss.com ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Problem with \" while compiling DRL
Cedric, Don't mind. I already opened the ticket: http://jira.jboss.com/jira/browse/JBRULES-757 []s Edson 2007/3/28, Edson Tirelli <[EMAIL PROTECTED]>: Cedric Yes, seems a lexer problem. Can you please open a JIRA? We will fix it for the next maintenance release. Thank you Edson 2007/3/28, D'Inca Cedric < [EMAIL PROTECTED]>: > > Hi everyone, > > > > I am currently experimentating troubles compiling a DRL file with a \" > character in it. > > I used a XLS decision table that, once compiled, gave me a DRL. The > following lines are extracted from it. > > > > #From row number: 14 > > rule "Exemple 1 2006 10 10_14" > > > > salience 65522 > > when > > Ctx:MyObject() > > eval(Ctx.GetPrp("TEST").getValue().equals("GER")) > > then > > Ctx.SetPrp("TRUC").setValue("test char \" test"); > > end > > > > #From row number: 15 > > > > The problem is that when compiled, an error is generated > > > > Unknown:0-1 mismatched token: [EMAIL PROTECTED],0,0='',<-1>,0:-1]; expecting > type 'end' > > > > If I modify the decision table to put > > > > Ctx.SetPrp("TRUC").setValue("test char " test"); > > > > The result is the same > > > > Unknown:0-1 mismatched token: [EMAIL PROTECTED],0,0='',<-1>,0:-1]; expecting > type 'end' > > > > So it means that \" is not understood, however, if I put \z, I get the > following error: > > > > Rule compilation error Invalid escape sequence (valid ones are \b \t \n > \f \r \" \' \\) > > > > Where it is written that \" should be understood. > > > > Any idea? > > > > Greetings, > > > > Cédric D'INCA > > ___ > rules-users mailing list > rules-users@lists.jboss.org > https://lists.jboss.org/mailman/listinfo/rules-users > > -- Edson Tirelli Software Engineer - JBoss Rules Core Developer Office: +55 11 3124-6000 Mobile: +55 11 9218-4151 JBoss, a division of Red Hat @ www.jboss.com -- Edson Tirelli Software Engineer - JBoss Rules Core Developer Office: +55 11 3124-6000 Mobile: +55 11 9218-4151 JBoss, a division of Red Hat @ www.jboss.com ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Problem with \" while compiling DRL
Cedric Yes, seems a lexer problem. Can you please open a JIRA? We will fix it for the next maintenance release. Thank you Edson 2007/3/28, D'Inca Cedric <[EMAIL PROTECTED]>: Hi everyone, I am currently experimentating troubles compiling a DRL file with a \" character in it. I used a XLS decision table that, once compiled, gave me a DRL. The following lines are extracted from it. #From row number: 14 rule "Exemple 1 2006 10 10_14" salience 65522 when Ctx:MyObject() eval(Ctx.GetPrp("TEST").getValue().equals("GER")) then Ctx.SetPrp("TRUC").setValue("test char \" test"); end #From row number: 15 The problem is that when compiled, an error is generated Unknown:0-1 mismatched token: [EMAIL PROTECTED],0,0='',<-1>,0:-1]; expecting type 'end' If I modify the decision table to put Ctx.SetPrp("TRUC").setValue("test char " test"); The result is the same Unknown:0-1 mismatched token: [EMAIL PROTECTED],0,0='',<-1>,0:-1]; expecting type 'end' So it means that \" is not understood, however, if I put \z, I get the following error: Rule compilation error Invalid escape sequence (valid ones are \b \t \n \f \r \" \' \\) Where it is written that \" should be understood. Any idea? Greetings, Cédric D'INCA ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- Edson Tirelli Software Engineer - JBoss Rules Core Developer Office: +55 11 3124-6000 Mobile: +55 11 9218-4151 JBoss, a division of Red Hat @ www.jboss.com ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] Problem with \" while compiling DRL
Hi everyone, I am currently experimentating troubles compiling a DRL file with a \" character in it. I used a XLS decision table that, once compiled, gave me a DRL. The following lines are extracted from it. #From row number: 14 rule "Exemple 1 2006 10 10_14" salience 65522 when Ctx:MyObject() eval(Ctx.GetPrp("TEST").getValue().equals("GER")) then Ctx.SetPrp("TRUC").setValue("test char \" test"); end #From row number: 15 The problem is that when compiled, an error is generated Unknown:0-1 mismatched token: [EMAIL PROTECTED],0,0='',<-1>,0:-1]; expecting type 'end' If I modify the decision table to put Ctx.SetPrp("TRUC").setValue("test char " test"); The result is the same Unknown:0-1 mismatched token: [EMAIL PROTECTED],0,0='',<-1>,0:-1]; expecting type 'end' So it means that \" is not understood, however, if I put \z, I get the following error: Rule compilation error Invalid escape sequence (valid ones are \b \t \n \f \r \" \' \\) Where it is written that \" should be understood. Any idea? Greetings, Cédric D'INCA ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users