Add test with tokenImage as used in JavaCC

This commit is contained in:
Owen Mansel-Chan
2024-03-23 21:30:33 +00:00
parent b8608a1b1c
commit 63a04c056a

View File

@@ -0,0 +1,17 @@
import org.apache.logging.log4j.Logger;
interface TokenSequenceParserConstants {
/** Literal token values. */
String[] tokenImage = {
"<EOF>",
};
}
public class TokenSequenceParserTest implements TokenSequenceParserConstants {
void test(String password) {
Logger logger = null;
logger.info("When parsing found this: " + tokenImage[0]); // Safe
}
}