ANTLR Tool Source Code

ANTLR is a powerful parser generator for multiple programming languages including Java.

ANTLR contains 2 major modules:

  • Runtime - For building and executing parsers/lexers generated in Java.
  • Tool (The Parser Generator) - For generating parsers/lexers Java class.

ANTLR Tool Source Code files are provided in the distribution packge (antlr4-4.10.1.zip). You can download them at ANTLR Website.

You can also browse the source code below:

✍: FYIcenter

Package Content:

org/antlr/v4/analysis/AnalysisPipeline.java
org/antlr/v4/analysis/LeftRecursionDetector.java
org/antlr/v4/analysis/LeftRecursiveRuleAltInfo.java
org/antlr/v4/analysis/LeftRecursiveRuleAnalyzer.java
org/antlr/v4/analysis/LeftRecursiveRuleTransformer.java
org/antlr/v4/automata/ATNFactory.java
org/antlr/v4/automata/ATNOptimizer.java
org/antlr/v4/automata/ATNPrinter.java
org/antlr/v4/automata/ATNVisitor.java
org/antlr/v4/automata/CharactersDataCheckStatus.java
org/antlr/v4/automata/LexerATNFactory.java
org/antlr/v4/automata/ParserATNFactory.java
org/antlr/v4/automata/RangeBorderCharactersData.java
org/antlr/v4/automata/TailEpsilonRemover.java
org/antlr/v4/codegen/ActionTranslator.java
org/antlr/v4/codegen/BlankOutputModelFactory.java
org/antlr/v4/codegen/CodeGenerator.java
org/antlr/v4/codegen/CodeGeneratorExtension.java
org/antlr/v4/codegen/CodeGenPipeline.java
org/antlr/v4/codegen/DefaultOutputModelFactory.java
org/antlr/v4/codegen/LexerFactory.java
org/antlr/v4/codegen/model/Action.java
org/antlr/v4/codegen/model/AddToLabelList.java
org/antlr/v4/codegen/model/AltBlock.java
org/antlr/v4/codegen/model/ArgAction.java
org/antlr/v4/codegen/model/BaseListenerFile.java
org/antlr/v4/codegen/model/BaseVisitorFile.java
org/antlr/v4/codegen/model/CaptureNextToken.java
org/antlr/v4/codegen/model/CaptureNextTokenType.java
org/antlr/v4/codegen/model/Choice.java
org/antlr/v4/codegen/model/chunk/ActionChunk.java
org/antlr/v4/codegen/model/chunk/ActionTemplate.java
org/antlr/v4/codegen/model/chunk/ActionText.java
org/antlr/v4/codegen/model/chunk/ArgRef.java
org/antlr/v4/codegen/model/chunk/LabelRef.java
org/antlr/v4/codegen/model/chunk/ListLabelRef.java
org/antlr/v4/codegen/model/chunk/LocalRef.java
org/antlr/v4/codegen/model/chunk/NonLocalAttrRef.java
org/antlr/v4/codegen/model/chunk/QRetValueRef.java
org/antlr/v4/codegen/model/chunk/RetValueRef.java
org/antlr/v4/codegen/model/chunk/RulePropertyRef.java
org/antlr/v4/codegen/model/chunk/RulePropertyRef_ctx.java
org/antlr/v4/codegen/model/chunk/RulePropertyRef_parser.java
org/antlr/v4/codegen/model/chunk/RulePropertyRef_start.java
org/antlr/v4/codegen/model/chunk/RulePropertyRef_stop.java
org/antlr/v4/codegen/model/chunk/RulePropertyRef_text.java
org/antlr/v4/codegen/model/chunk/SetAttr.java
org/antlr/v4/codegen/model/chunk/SetNonLocalAttr.java
org/antlr/v4/codegen/model/chunk/SymbolRefChunk.java
org/antlr/v4/codegen/model/chunk/ThisRulePropertyRef_ctx.java
org/antlr/v4/codegen/model/chunk/ThisRulePropertyRef_parser.java
org/antlr/v4/codegen/model/chunk/ThisRulePropertyRef_start.java
org/antlr/v4/codegen/model/chunk/ThisRulePropertyRef_stop.java
org/antlr/v4/codegen/model/chunk/ThisRulePropertyRef_text.java
org/antlr/v4/codegen/model/chunk/TokenPropertyRef.java
org/antlr/v4/codegen/model/chunk/TokenPropertyRef_channel.java
org/antlr/v4/codegen/model/chunk/TokenPropertyRef_index.java
org/antlr/v4/codegen/model/chunk/TokenPropertyRef_int.java
org/antlr/v4/codegen/model/chunk/TokenPropertyRef_line.java
org/antlr/v4/codegen/model/chunk/TokenPropertyRef_pos.java
org/antlr/v4/codegen/model/chunk/TokenPropertyRef_text.java
org/antlr/v4/codegen/model/chunk/TokenPropertyRef_type.java
org/antlr/v4/codegen/model/chunk/TokenRef.java
org/antlr/v4/codegen/model/CodeBlockForAlt.java
org/antlr/v4/codegen/model/CodeBlockForOuterMostAlt.java
org/antlr/v4/codegen/model/dbg.java
org/antlr/v4/codegen/model/decl/AltLabelStructDecl.java
org/antlr/v4/codegen/model/decl/AttributeDecl.java
org/antlr/v4/codegen/model/decl/CodeBlock.java
org/antlr/v4/codegen/model/decl/ContextGetterDecl.java
org/antlr/v4/codegen/model/decl/ContextRuleGetterDecl.java
org/antlr/v4/codegen/model/decl/ContextRuleListGetterDecl.java
org/antlr/v4/codegen/model/decl/ContextRuleListIndexedGetterDecl.java
org/antlr/v4/codegen/model/decl/ContextTokenGetterDecl.java
org/antlr/v4/codegen/model/decl/ContextTokenListGetterDecl.java
org/antlr/v4/codegen/model/decl/ContextTokenListIndexedGetterDecl.java
org/antlr/v4/codegen/model/decl/Decl.java
org/antlr/v4/codegen/model/decl/ElementListDecl.java
org/antlr/v4/codegen/model/decl/RuleContextDecl.java
org/antlr/v4/codegen/model/decl/RuleContextListDecl.java
org/antlr/v4/codegen/model/decl/StructDecl.java
org/antlr/v4/codegen/model/decl/TokenDecl.java
org/antlr/v4/codegen/model/decl/TokenListDecl.java
org/antlr/v4/codegen/model/decl/TokenTypeDecl.java
org/antlr/v4/codegen/model/DispatchMethod.java
org/antlr/v4/codegen/model/ElementFrequenciesVisitor.java
org/antlr/v4/codegen/model/ExceptionClause.java
org/antlr/v4/codegen/model/InvokeRule.java
org/antlr/v4/codegen/model/LabeledOp.java
org/antlr/v4/codegen/model/LeftRecursiveRuleFunction.java
org/antlr/v4/codegen/model/Lexer.java
org/antlr/v4/codegen/model/LexerFile.java
org/antlr/v4/codegen/model/ListenerDispatchMethod.java
org/antlr/v4/codegen/model/ListenerFile.java
org/antlr/v4/codegen/model/LL1AltBlock.java
org/antlr/v4/codegen/model/LL1Choice.java
org/antlr/v4/codegen/model/LL1Loop.java
org/antlr/v4/codegen/model/LL1OptionalBlock.java
org/antlr/v4/codegen/model/LL1OptionalBlockSingleAlt.java
org/antlr/v4/codegen/model/LL1PlusBlockSingleAlt.java
org/antlr/v4/codegen/model/LL1StarBlockSingleAlt.java
org/antlr/v4/codegen/model/Loop.java
org/antlr/v4/codegen/model/MatchNotSet.java
org/antlr/v4/codegen/model/MatchSet.java
org/antlr/v4/codegen/model/MatchToken.java
org/antlr/v4/codegen/model/ModelElement.java
org/antlr/v4/codegen/model/OptionalBlock.java
org/antlr/v4/codegen/model/OutputFile.java
org/antlr/v4/codegen/model/OutputModelObject.java
org/antlr/v4/codegen/model/Parser.java
org/antlr/v4/codegen/model/ParserFile.java
org/antlr/v4/codegen/model/PlusBlock.java
org/antlr/v4/codegen/model/Recognizer.java
org/antlr/v4/codegen/model/RuleActionFunction.java
org/antlr/v4/codegen/model/RuleElement.java
org/antlr/v4/codegen/model/RuleFunction.java
org/antlr/v4/codegen/model/RuleSempredFunction.java
org/antlr/v4/codegen/model/SemPred.java
org/antlr/v4/codegen/model/SerializedATN.java
org/antlr/v4/codegen/model/SerializedJavaATN.java
org/antlr/v4/codegen/model/SrcOp.java
org/antlr/v4/codegen/model/StarBlock.java
org/antlr/v4/codegen/model/Sync.java
org/antlr/v4/codegen/model/TestSetInline.java
org/antlr/v4/codegen/model/ThrowEarlyExitException.java
org/antlr/v4/codegen/model/ThrowNoViableAlt.java
org/antlr/v4/codegen/model/ThrowRecognitionException.java
org/antlr/v4/codegen/model/VisitorDispatchMethod.java
org/antlr/v4/codegen/model/VisitorFile.java
org/antlr/v4/codegen/model/Wildcard.java
org/antlr/v4/codegen/OutputModelController.java
org/antlr/v4/codegen/OutputModelFactory.java
org/antlr/v4/codegen/OutputModelWalker.java
org/antlr/v4/codegen/ParserFactory.java
org/antlr/v4/codegen/target/CppTarget.java
org/antlr/v4/codegen/target/CSharpTarget.java
org/antlr/v4/codegen/target/DartTarget.java
org/antlr/v4/codegen/target/GoTarget.java
org/antlr/v4/codegen/target/JavaScriptTarget.java
org/antlr/v4/codegen/target/JavaTarget.java
org/antlr/v4/codegen/target/PHPTarget.java
org/antlr/v4/codegen/target/Python2Target.java
org/antlr/v4/codegen/target/Python3Target.java
org/antlr/v4/codegen/target/SwiftTarget.java
org/antlr/v4/codegen/Target.java
org/antlr/v4/codegen/UnicodeEscapes.java
org/antlr/v4/gui/BasicFontMetrics.java
org/antlr/v4/gui/GraphicsSupport.java
org/antlr/v4/gui/JFileChooserConfirmOverwrite.java
org/antlr/v4/gui/PostScriptDocument.java
org/antlr/v4/gui/SystemFontMetrics.java
org/antlr/v4/gui/TestRig.java
org/antlr/v4/gui/TreeLayoutAdaptor.java
org/antlr/v4/gui/TreePostScriptGenerator.java
org/antlr/v4/gui/Trees.java
org/antlr/v4/gui/TreeTextProvider.java
org/antlr/v4/gui/TreeViewer.java
org/antlr/v4/misc/CharSupport.java
org/antlr/v4/misc/EscapeSequenceParsing.java
org/antlr/v4/misc/FrequencySet.java
org/antlr/v4/misc/Graph.java
org/antlr/v4/misc/MutableInt.java
org/antlr/v4/misc/OrderedHashMap.java
org/antlr/v4/misc/Utils.java
org/antlr/v4/parse/ActionSplitterListener.java
org/antlr/v4/parse/GrammarASTAdaptor.java
org/antlr/v4/parse/GrammarToken.java
org/antlr/v4/parse/ResyncToEndOfRuleBlock.java
org/antlr/v4/parse/ScopeParser.java
org/antlr/v4/parse/TokenVocabParser.java
org/antlr/v4/parse/ToolANTLRLexer.java
org/antlr/v4/parse/ToolANTLRParser.java
org/antlr/v4/parse/v4ParserException.java
org/antlr/v4/semantics/ActionSniffer.java
org/antlr/v4/semantics/AttributeChecks.java
org/antlr/v4/semantics/BasicSemanticChecks.java
org/antlr/v4/semantics/BlankActionSplitterListener.java
org/antlr/v4/semantics/RuleCollector.java
org/antlr/v4/semantics/SemanticPipeline.java
org/antlr/v4/semantics/SymbolChecks.java
org/antlr/v4/semantics/SymbolCollector.java
org/antlr/v4/semantics/UseDefAnalyzer.java
org/antlr/v4/tool/Alternative.java
org/antlr/v4/tool/ANTLRMessage.java
org/antlr/v4/tool/ANTLRToolListener.java
org/antlr/v4/tool/ast/ActionAST.java
org/antlr/v4/tool/ast/AltAST.java
org/antlr/v4/tool/ast/BlockAST.java
org/antlr/v4/tool/ast/GrammarAST.java
org/antlr/v4/tool/ast/GrammarASTErrorNode.java
org/antlr/v4/tool/ast/GrammarASTVisitor.java
org/antlr/v4/tool/ast/GrammarASTWithOptions.java
org/antlr/v4/tool/ast/GrammarRootAST.java
org/antlr/v4/tool/ast/NotAST.java
org/antlr/v4/tool/ast/OptionalBlockAST.java
org/antlr/v4/tool/ast/PlusBlockAST.java
org/antlr/v4/tool/ast/PredAST.java
org/antlr/v4/tool/ast/QuantifierAST.java
org/antlr/v4/tool/ast/RangeAST.java
org/antlr/v4/tool/ast/RuleAST.java
org/antlr/v4/tool/ast/RuleElementAST.java
org/antlr/v4/tool/ast/RuleRefAST.java
org/antlr/v4/tool/ast/SetAST.java
org/antlr/v4/tool/ast/StarBlockAST.java
org/antlr/v4/tool/ast/TerminalAST.java
org/antlr/v4/tool/Attribute.java
org/antlr/v4/tool/AttributeDict.java
org/antlr/v4/tool/AttributeResolver.java
org/antlr/v4/tool/BuildDependencyGenerator.java
org/antlr/v4/tool/DefaultToolListener.java
org/antlr/v4/tool/DOTGenerator.java
org/antlr/v4/tool/ErrorManager.java
org/antlr/v4/tool/ErrorSeverity.java
org/antlr/v4/tool/ErrorType.java
org/antlr/v4/tool/Grammar.java
org/antlr/v4/tool/GrammarInterpreterRuleContext.java
org/antlr/v4/tool/GrammarParserInterpreter.java
org/antlr/v4/tool/GrammarSemanticsMessage.java
org/antlr/v4/tool/GrammarSyntaxMessage.java
org/antlr/v4/tool/GrammarTransformPipeline.java
org/antlr/v4/tool/LabelElementPair.java
org/antlr/v4/tool/LabelType.java
org/antlr/v4/tool/LeftRecursionCyclesMessage.java
org/antlr/v4/tool/LeftRecursiveRule.java
org/antlr/v4/tool/LexerGrammar.java
org/antlr/v4/tool/Rule.java
org/antlr/v4/tool/ToolMessage.java
org/antlr/v4/Tool.java
org/antlr/v4/unicode/UnicodeDataTemplateController.java

 

Or download all of them as a single archive file:

File name: antlr-tool-4.10.1-sources.jar
File size: 347718 bytes
Release date: 2022-04-15
Download 

 

Donwload antlr4-4.10.1.zip

ANTLR Runtime Source Code

Download and Review ANTLR Parser Generator

⇑⇑ FAQ for ANTLR Parser Generator

2022-04-24, 32266👍, 0💬