[rules-users] grammar of rules language

Davide Sottara dsotty at gmail.com
Tue Jun 11 01:04:35 EDT 2013


The custom "master" parser (DRLParser) delegates the parsing of
expressions to a nested sub-parser (DRLExpressions). You can find them here:

https://github.com/droolsjbpm/drools/tree/master/drools-compiler/src/main/java/org/drools/compiler/lang
https://github.com/droolsjbpm/drools/tree/master/drools-compiler/src/main/resources/org/drools/compiler/lang

The grammar is discussed in the official documentation, but you can find
an ebnf equivalent here:

https://github.com/droolsjbpm/drools/blob/master/drools-docs/drools-expert-docs/src/main/docbook/en-US/Chapter-LanguageReference/drl.ebnf

On 06/11/2013 05:14 AM, Mark Proctor wrote:
> we use a custom parser, based on an antlr lexer.
>
> On 10 Jun 2013, at 22:24, "Florian.Pirchner" <florian.pirchner at gmail.com> wrote:
>
>> hi,
>>
>> i am looking for the grammar of rules to get some insights of all the semantic elements available. i found parts of it at github.
>> can anyone point me to a proper location?
>> is there a single antlr file for it?
>>
>> Thanks a lot
>> Florian Pirchner
>> _______________________________________________
>> rules-users mailing list
>> rules-users at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-users
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>



More information about the rules-users mailing list