variable instead of "arrN". In some cases, for example when using symbolic
files, the symbolic name contains an hyphen,e.g. A-data, and it is making
kleaver parser to fail.
I've already fixed it (I guess, unittests have passed) and the solution
seems very simple. Just consider the hypen as valid in
the isInternalIdentifierChar(int Char) function in lib/Expr/Lexer.cpp line
63.
The function should now be like this.
static inline bool isInternalIdentifierChar(int Char) {
return isalnum(Char) || Char == '_' || Char == '.' || Char == '-';
}
best,
Leandro
--0016e6433f08352f1104a8091b8c
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Hi guys,<div><br></div><div>I guess revision=A0r132054 has introduced a bug=
to KLEAVER.</div><div><br></div><div>From that revision, arrays declaratio=
ns include the symbolic name of the variable instead of "arrN". I=
n some cases, for example when using symbolic files, the symbolic name cont=
ains an hyphen,e.g. A-data, and it is making kleaver parser to fail.</div>
<div><br></div><div>I've already fixed it (I guess, unittests have pass=
ed) and the solution seems very simple. Just consider the hypen as valid in=
the=A0isInternalIdentifierChar(int Char) function in lib/Expr/Lexer.cpp li=
ne 63.=A0</div>
<div>The function should now be like this.</div><div><br></div><div><div>=
=A0static inline bool isInternalIdentifierChar(int Char) {</div><div>=A0 re=
turn isalnum(Char) || Char =3D=3D '_' || Char =3D=3D '.' ||=
Char =3D=3D '-';</div>
<div>=A0}</div></div><div><br></div><div>best,</div><div><br></div><div>Lea=
ndro</div>
--0016e6433f08352f1104a8091b8c--