add tool-template and generatedcode-runtime version compatibility check. Target authors add a VERSION template and supply a RuntimeMetaData.checkVersion() method.
To get static checking I converted the version template to a method and also moved the compatibility check into the target so that in the worst-case target developers can override the compatibility check per their needs. I have also decided to throw an exception for the Java target when the code generation and runtime library versions are incompatible. Change the tool message per Sam's request.
tweaks per Sam's comment. define default version so targets don't fail to compile.
should not be a default version lest all targets pass by default. make sure java target and tool move in lockstep. Fixes #572
damn intellij/git always loses changes but just with antlr repo. DAMN! commiting last files manually
get good message
Merge pull request #569 from parrt/runtime-tool-version-sync

add tool-template and generatedcode-runtime version compatibility check
Add ATNSimulator.clearDFA, and implement for LexerATNSimulator and ParserATNSimulator
Simplify the GrammarAST constructors, and correct the token start/stop index not being set
Add utility method ATNConfigSet.getAlts
Merge pull request #584 from sharwell/clear-dfa

Add ATNSimulator.clearDFA
Merge pull request #585 from sharwell/grammar-ast

Simplify the GrammarAST constructors
Merge pull request #586 from sharwell/getalts

Add utility method ATNConfigSet.getAlts
Add the SemanticContext.Operator base class to provide consistent API access to the operands of AND and OR contexts
Merge pull request #587 from sharwell/getoperands

Add the SemanticContext.Operator interface
initial profiler
Remove unnecessary call to input.index()
Simplify common code in XPath tests
Merge pull request #591 from sharwell/xpath-tests

Simplify common code in XPath tests
Merge pull request #592 from sharwell/rm-unnecessary-call

Remove unnecessary call to input.index()