List of keywords accessible to programs?
Is there a way for a program to get a list of Java keywords from the standard API? Maybe via reflection or something? Right now my program contains this:
Just curious if I wasted my time typing all that. :D:
// javaKeywords is a HashSet<String>
(I'm generating a JFlex lexer spec from another format, and I need to check that none of the identifiers are Java keywords.)