0
Est-il possible de faire ce que je tente ici? Ou, peut-être que je m'approche mal?ANTLR3 injecter un int dans mon arbre
arrayDef
: { int c = 0; }
('['']' {c++;})+
-> ARRAY /* somehow inject c here */
;
Cela a bien fonctionné, merci! –