This repository has been archived by the owner on Feb 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Switch from antlr 2.7.2 to antlr 2.7.7 (#63)
In addition to adopting antlr 2.7.7, libantlr.jar is now built from source allowing the current libantlr.jar (2.7.2) to be deleted. This contributes to resolving #56.
- Loading branch information
Showing
333 changed files
with
62,695 additions
and
1,735 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,219 @@ | ||
package(default_visibility = ["//visibility:public"]) | ||
|
||
java_import( | ||
name = "libantlr", | ||
jars = [ | ||
"libantlr.jar", | ||
] | ||
java_library( | ||
name = "antlr", | ||
srcs = [ | ||
"antlr/ANTLRError.java", | ||
"antlr/ANTLRException.java", | ||
"antlr/ANTLRGrammarParseBehavior.java", | ||
"antlr/ANTLRHashString.java", | ||
"antlr/ANTLRLexer.java", | ||
"antlr/ANTLRParser.java", | ||
"antlr/ANTLRStringBuffer.java", | ||
"antlr/ANTLRTokdefLexer.java", | ||
"antlr/ANTLRTokdefParser.java", | ||
"antlr/ANTLRTokdefParserTokenTypes.java", | ||
"antlr/ANTLRTokenTypes.java", | ||
"antlr/ASTFactory.java", | ||
"antlr/ASTIterator.java", | ||
"antlr/ASTNULLType.java", | ||
"antlr/ASTPair.java", | ||
"antlr/ASTVisitor.java", | ||
"antlr/ActionElement.java", | ||
"antlr/ActionTransInfo.java", | ||
"antlr/Alternative.java", | ||
"antlr/AlternativeBlock.java", | ||
"antlr/AlternativeElement.java", | ||
"antlr/BaseAST.java", | ||
"antlr/BlockContext.java", | ||
"antlr/BlockEndElement.java", | ||
"antlr/BlockWithImpliedExitPath.java", | ||
"antlr/ByteBuffer.java", | ||
"antlr/CharBuffer.java", | ||
"antlr/CharFormatter.java", | ||
"antlr/CharLiteralElement.java", | ||
"antlr/CharQueue.java", | ||
"antlr/CharRangeElement.java", | ||
"antlr/CharScanner.java", | ||
"antlr/CharStreamException.java", | ||
"antlr/CharStreamIOException.java", | ||
"antlr/CodeGenerator.java", | ||
"antlr/CommonAST.java", | ||
"antlr/CommonASTWithHiddenTokens.java", | ||
"antlr/CommonHiddenStreamToken.java", | ||
"antlr/CommonToken.java", | ||
"antlr/CppBlockFinishingInfo.java", | ||
"antlr/CppCharFormatter.java", | ||
"antlr/CppCodeGenerator.java", | ||
"antlr/DefaultFileLineFormatter.java", | ||
"antlr/DefaultJavaCodeGeneratorPrintWriterManager.java", | ||
"antlr/DefaultToolErrorHandler.java", | ||
"antlr/DefineGrammarSymbols.java", | ||
"antlr/DiagnosticCodeGenerator.java", | ||
"antlr/DocBookCodeGenerator.java", | ||
"antlr/DumpASTVisitor.java", | ||
"antlr/ExceptionHandler.java", | ||
"antlr/ExceptionSpec.java", | ||
"antlr/FileCopyException.java", | ||
"antlr/FileLineFormatter.java", | ||
"antlr/Grammar.java", | ||
"antlr/GrammarAnalyzer.java", | ||
"antlr/GrammarAtom.java", | ||
"antlr/GrammarElement.java", | ||
"antlr/GrammarSymbol.java", | ||
"antlr/HTMLCodeGenerator.java", | ||
"antlr/ImportVocabTokenManager.java", | ||
"antlr/InputBuffer.java", | ||
"antlr/JavaBlockFinishingInfo.java", | ||
"antlr/JavaCharFormatter.java", | ||
"antlr/JavaCodeGenerator.java", | ||
"antlr/JavaCodeGeneratorPrintWriterManager.java", | ||
"antlr/LLkAnalyzer.java", | ||
"antlr/LLkGrammarAnalyzer.java", | ||
"antlr/LLkParser.java", | ||
"antlr/LexerGrammar.java", | ||
"antlr/LexerSharedInputState.java", | ||
"antlr/Lookahead.java", | ||
"antlr/MakeGrammar.java", | ||
"antlr/MismatchedCharException.java", | ||
"antlr/MismatchedTokenException.java", | ||
"antlr/NameSpace.java", | ||
"antlr/NoViableAltException.java", | ||
"antlr/NoViableAltForCharException.java", | ||
"antlr/OneOrMoreBlock.java", | ||
"antlr/Parser.java", | ||
"antlr/ParserGrammar.java", | ||
"antlr/ParserSharedInputState.java", | ||
"antlr/ParseTree.java", | ||
"antlr/ParseTreeRule.java", | ||
"antlr/ParseTreeToken.java", | ||
"antlr/PreservingFileWriter.java", | ||
"antlr/PrintWriterWithSMAP.java", | ||
"antlr/RecognitionException.java", | ||
"antlr/RuleBlock.java", | ||
"antlr/RuleEndElement.java", | ||
"antlr/RuleRefElement.java", | ||
"antlr/RuleSymbol.java", | ||
"antlr/SemanticException.java", | ||
"antlr/SimpleTokenManager.java", | ||
"antlr/StringLiteralElement.java", | ||
"antlr/StringLiteralSymbol.java", | ||
"antlr/StringUtils.java", | ||
"antlr/SynPredBlock.java", | ||
"antlr/Token.java", | ||
"antlr/TokenBuffer.java", | ||
"antlr/TokenManager.java", | ||
"antlr/TokenQueue.java", | ||
"antlr/TokenRangeElement.java", | ||
"antlr/TokenRefElement.java", | ||
"antlr/TokenStream.java", | ||
"antlr/TokenStreamBasicFilter.java", | ||
"antlr/TokenStreamException.java", | ||
"antlr/TokenStreamHiddenTokenFilter.java", | ||
"antlr/TokenStreamIOException.java", | ||
"antlr/TokenStreamRecognitionException.java", | ||
"antlr/TokenStreamRetryException.java", | ||
"antlr/TokenStreamRewriteEngine.java", | ||
"antlr/TokenStreamSelector.java", | ||
"antlr/TokenSymbol.java", | ||
"antlr/TokenWithIndex.java", | ||
"antlr/Tool.java", | ||
"antlr/ToolErrorHandler.java", | ||
"antlr/TreeBlockContext.java", | ||
"antlr/TreeElement.java", | ||
"antlr/TreeParser.java", | ||
"antlr/TreeParserSharedInputState.java", | ||
"antlr/TreeSpecifierNode.java", | ||
"antlr/TreeWalkerGrammar.java", | ||
"antlr/Utils.java", | ||
"antlr/Version.java", | ||
"antlr/WildcardElement.java", | ||
"antlr/ZeroOrMoreBlock.java", | ||
"antlr/ASdebug/ASDebugStream.java", | ||
"antlr/ASdebug/IASDebugStream.java", | ||
"antlr/ASdebug/TokenOffsetInfo.java", | ||
"antlr/actions/cpp/ActionLexer.java", | ||
"antlr/actions/cpp/ActionLexerTokenTypes.java", | ||
"antlr/actions/java/ActionLexer.java", | ||
"antlr/actions/java/ActionLexerTokenTypes.java", | ||
"antlr/collections/AST.java", | ||
"antlr/collections/ASTEnumeration.java", | ||
"antlr/collections/Enumerator.java", | ||
"antlr/collections/List.java", | ||
"antlr/collections/Stack.java", | ||
"antlr/collections/impl/ASTArray.java", | ||
"antlr/collections/impl/ASTEnumerator.java", | ||
"antlr/collections/impl/BitSet.java", | ||
"antlr/collections/impl/IndexedVector.java", | ||
"antlr/collections/impl/IntRange.java", | ||
"antlr/collections/impl/LLCell.java", | ||
"antlr/collections/impl/LLEnumeration.java", | ||
"antlr/collections/impl/LList.java", | ||
"antlr/collections/impl/Vector.java", | ||
"antlr/collections/impl/VectorEnumeration.java", | ||
"antlr/collections/impl/VectorEnumerator.java", | ||
"antlr/debug/DebuggingCharScanner.java", | ||
"antlr/debug/DebuggingInputBuffer.java", | ||
"antlr/debug/DebuggingParser.java", | ||
"antlr/debug/Event.java", | ||
"antlr/debug/GuessingEvent.java", | ||
"antlr/debug/InputBufferAdapter.java", | ||
"antlr/debug/InputBufferEvent.java", | ||
"antlr/debug/InputBufferEventSupport.java", | ||
"antlr/debug/InputBufferListener.java", | ||
"antlr/debug/InputBufferReporter.java", | ||
"antlr/debug/LLkDebuggingParser.java", | ||
"antlr/debug/ListenerBase.java", | ||
"antlr/debug/MessageAdapter.java", | ||
"antlr/debug/MessageEvent.java", | ||
"antlr/debug/MessageListener.java", | ||
"antlr/debug/NewLineEvent.java", | ||
"antlr/debug/NewLineListener.java", | ||
"antlr/debug/ParserAdapter.java", | ||
"antlr/debug/ParserController.java", | ||
"antlr/debug/ParserEventSupport.java", | ||
"antlr/debug/ParserListener.java", | ||
"antlr/debug/ParserMatchAdapter.java", | ||
"antlr/debug/ParserMatchEvent.java", | ||
"antlr/debug/ParserMatchListener.java", | ||
"antlr/debug/ParserReporter.java", | ||
"antlr/debug/ParserTokenAdapter.java", | ||
"antlr/debug/ParserTokenEvent.java", | ||
"antlr/debug/ParserTokenListener.java", | ||
"antlr/debug/ParseTreeDebugParser.java", | ||
"antlr/debug/SemanticPredicateAdapter.java", | ||
"antlr/debug/SemanticPredicateEvent.java", | ||
"antlr/debug/SemanticPredicateListener.java", | ||
"antlr/debug/SyntacticPredicateAdapter.java", | ||
"antlr/debug/SyntacticPredicateEvent.java", | ||
"antlr/debug/SyntacticPredicateListener.java", | ||
"antlr/debug/TraceAdapter.java", | ||
"antlr/debug/TraceEvent.java", | ||
"antlr/debug/TraceListener.java", | ||
"antlr/debug/Tracer.java", | ||
"antlr/debug/misc/ASTFrame.java", | ||
"antlr/debug/misc/JTreeASTModel.java", | ||
"antlr/debug/misc/JTreeASTPanel.java", | ||
"antlr/preprocessor/Grammar.java", | ||
"antlr/preprocessor/GrammarFile.java", | ||
"antlr/preprocessor/Hierarchy.java", | ||
"antlr/preprocessor/Option.java", | ||
"antlr/preprocessor/Preprocessor.java", | ||
"antlr/preprocessor/PreprocessorLexer.java", | ||
"antlr/preprocessor/PreprocessorTokenTypes.java", | ||
"antlr/preprocessor/Rule.java", | ||
"antlr/preprocessor/Tool.java", | ||
], | ||
javacopts = [ | ||
"-Xep:EqualsHashCode:OFF", | ||
"-Xep:EqualsIncompatibleType:OFF", | ||
], | ||
) | ||
|
||
java_binary( | ||
name = "antlr_tool", | ||
main_class = "antlr.Tool", | ||
runtime_deps = [ | ||
":libantlr", | ||
":antlr", | ||
] | ||
) |
Oops, something went wrong.