MAJ terminée. Nous sommes passés en version 14.6.2 . Pour consulter les "releases notes" associées c'est ici :

https://about.gitlab.com/releases/2022/01/11/security-release-gitlab-14-6-2-released/
https://about.gitlab.com/releases/2022/01/04/gitlab-14-6-1-released/

Commit 59571195 authored by VIGNET Pierre's avatar VIGNET Pierre
Browse files

[antlr] Grammar: Give up 'returns' keyword of antlr3

parent 83705376
......@@ -11,46 +11,46 @@ options {
@header{
}
// RULES
// returns the set of ids in boolean expression
sig_bool returns [idents]
@init{$idents = set()}
: id1=sig_bool1 DOL {$idents = id1}
// returns the local context with with idents attribut containing the set of ids in boolean expression
sig_bool
@init{$ctx.idents = set()}
: id1=sig_bool1 DOL {$ctx.idents = $ctx.id1.idents}
| DOL
;
sig_bool1 returns [idents]
@init{$idents = set()}
: id1=sig_bool_and {$idents = id1}
(OR id2=sig_bool_and {$idents = $idents | id2}
sig_bool1
@init{$ctx.idents = set()}
: id1=sig_bool_and {$ctx.idents = $ctx.id1.idents}
(OR id2=sig_bool_and {$ctx.idents |= $ctx.id2.idents}
)*
;
sig_bool_and returns [idents]
@init{$idents = set()}
: id1=sig_primary {$idents = id1}
(AND id2=sig_primary {$idents = $idents | id2}
sig_bool_and
@init{$ctx.idents = set()}
: id1=sig_primary {$ctx.idents = $ctx.id1.idents}
(AND id2=sig_primary {$ctx.idents |= $ctx.id2.idents}
)*
;
sig_primary returns [idents]
@init{$idents = set()}
sig_primary
@init{$ctx.idents = set()}
: NOT id1=sig_primary
{$idents = id1}
{$ctx.idents = $ctx.id1.idents}
| id4=sig_constant
{$idents = id4}
{$ctx.idents = $ctx.id4.idents}
| id2=IDENT
{$idents = set([$id2.text.encode("utf8")])}
{$ctx.idents = set([$id2.text.encode("utf8")])}
| PG id3= sig_bool1 PD
{$idents = id3}
{$ctx.idents = $ctx.id3.idents}
;
sig_constant returns [idents]
@init{$idents = set()}
: T {$idents = set()}
| F {$idents = set()}
sig_constant
@init{$ctx.idents = set()}
: T {$ctx.idents = set()}
| F {$ctx.idents = set()}
;
//lexer
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment