|
From: | Akim Demaille |
Subject: | Re: [PATCH] Test token.prefix in all the skeletons. |
Date: | Mon, 8 Dec 2008 09:56:10 +0100 |
Le 7 déc. 08 à 13:58, Akim Demaille a écrit :
* data/java.m4 (b4_token_enum): Use the token.prefix. * tests/local.at (AT_BISON_OPTION_PUSHDEFS): Define AT_TOKEN_PREFIX. * tests/calc.at (_AT_DATA_CALC_Y): Use it. Add checks for yacc.c, glr.c, lalr1.cc and glr.cc. * tests/java.at: Comment changes. (AT_CHECK_JAVA_MINIMAL): Define the END token. (Java parser class and package names): Add token.prefix check.
I have added it to Java because it easier simpler to document something used everywhere rather than having exceptions to deal with, but Java is far less sensitive to this problem I guess. Yes, it prevents collisions with member names, keywords etc. As a matter of fact, I don't understand how such a trivial feature was not implemented before.
Paolo, I am not really fluent with the Java test suite. I don't know if I did it the way you would. Feel free to override me.
[Prev in Thread] | Current Thread | [Next in Thread] |