antlr4-cppruntime/4.13.1

C++ runtime support for ANTLR (ANother Tool for Language Recognition)
Recipe info
2023-09-15

Available packages
Linux
Windows
macOS
macOS Apple Silicon

Install
Add the following line to your conanfile.txt:
[requires]
antlr4-cppruntime/4.13.1

Using antlr4-cppruntime

Note

If you are a new Conan user, we recommend reading the how to consume packages tutorial.

If you need additional assistance, please ask a question in the Conan Center Index repository.

Simplest use case consuming this recipe and assuming CMake as your local build tool:

[requires]
antlr4-cppruntime/4.13.1
[generators]
CMakeDeps
CMakeToolchain
[layout]
cmake_layout
from conan import ConanFile
from conan.tools.cmake import cmake_layout


class ExampleRecipe(ConanFile):
    settings = "os", "compiler", "build_type", "arch"
    generators = "CMakeDeps", "CMakeToolchain"

    def requirements(self):
        self.requires("antlr4-cppruntime/4.13.1")

    def layout(self):
        cmake_layout(self)

Now, you can run this Conan command to locally install (and build if necessary) this recipe and its dependencies (if any):

$ conan install conanfile.txt --build=missing

Useful information to take into account to consume this library:


These are the main declared targets:

  • CMake package name(s): antlr4-runtime
  • CMake target name(s): antlr4_static
  • pkg-config file name(s): antlr4-cppruntime.pc

A simple use case using the CMake file name and the global target:

# ...
find_package(antlr4-runtime REQUIRED)
# ...
target_link_libraries(YOUR_TARGET antlr4_static)

These are all the available headers. Some of these ones might be non-public; make sure of it by visiting the antlr4-cppruntime homepage listed above:

#include "ANTLRErrorListener.h"
#include "ANTLRErrorStrategy.h"
#include "ANTLRFileStream.h"
#include "ANTLRInputStream.h"
#include "BailErrorStrategy.h"
#include "BaseErrorListener.h"
#include "BufferedTokenStream.h"
#include "CharStream.h"
#include "CommonToken.h"
#include "CommonTokenFactory.h"
#include "CommonTokenStream.h"
#include "ConsoleErrorListener.h"
#include "DefaultErrorStrategy.h"
#include "DiagnosticErrorListener.h"
#include "Exceptions.h"
#include "FailedPredicateException.h"
#include "FlatHashMap.h"
#include "FlatHashSet.h"
#include "InputMismatchException.h"
#include "IntStream.h"
#include "InterpreterRuleContext.h"
#include "Lexer.h"
#include "LexerInterpreter.h"
#include "LexerNoViableAltException.h"
#include "ListTokenSource.h"
#include "NoViableAltException.h"
#include "Parser.h"
#include "ParserInterpreter.h"
#include "ParserRuleContext.h"
#include "ProxyErrorListener.h"
#include "RecognitionException.h"
#include "Recognizer.h"
#include "RuleContext.h"
#include "RuleContextWithAltNum.h"
#include "RuntimeMetaData.h"
#include "Token.h"
#include "TokenFactory.h"
#include "TokenSource.h"
#include "TokenStream.h"
#include "TokenStreamRewriter.h"
#include "UnbufferedCharStream.h"
#include "UnbufferedTokenStream.h"
#include "Version.h"
#include "Vocabulary.h"
#include "WritableToken.h"
#include "antlr4-common.h"
#include "antlr4-runtime.h"
#include "antlr4-runtime/ANTLRErrorListener.h"
#include "antlr4-runtime/ANTLRErrorStrategy.h"
#include "antlr4-runtime/ANTLRFileStream.h"
#include "antlr4-runtime/ANTLRInputStream.h"
#include "antlr4-runtime/BailErrorStrategy.h"
#include "antlr4-runtime/BaseErrorListener.h"
#include "antlr4-runtime/BufferedTokenStream.h"
#include "antlr4-runtime/CharStream.h"
#include "antlr4-runtime/CommonToken.h"
#include "antlr4-runtime/CommonTokenFactory.h"
#include "antlr4-runtime/CommonTokenStream.h"
#include "antlr4-runtime/ConsoleErrorListener.h"
#include "antlr4-runtime/DefaultErrorStrategy.h"
#include "antlr4-runtime/DiagnosticErrorListener.h"
#include "antlr4-runtime/Exceptions.h"
#include "antlr4-runtime/FailedPredicateException.h"
#include "antlr4-runtime/FlatHashMap.h"
#include "antlr4-runtime/FlatHashSet.h"
#include "antlr4-runtime/InputMismatchException.h"
#include "antlr4-runtime/IntStream.h"
#include "antlr4-runtime/InterpreterRuleContext.h"
#include "antlr4-runtime/Lexer.h"
#include "antlr4-runtime/LexerInterpreter.h"
#include "antlr4-runtime/LexerNoViableAltException.h"
#include "antlr4-runtime/ListTokenSource.h"
#include "antlr4-runtime/NoViableAltException.h"
#include "antlr4-runtime/Parser.h"
#include "antlr4-runtime/ParserInterpreter.h"
#include "antlr4-runtime/ParserRuleContext.h"
#include "antlr4-runtime/ProxyErrorListener.h"
#include "antlr4-runtime/RecognitionException.h"
#include "antlr4-runtime/Recognizer.h"
#include "antlr4-runtime/RuleContext.h"
#include "antlr4-runtime/RuleContextWithAltNum.h"
#include "antlr4-runtime/RuntimeMetaData.h"
#include "antlr4-runtime/Token.h"
#include "antlr4-runtime/TokenFactory.h"
#include "antlr4-runtime/TokenSource.h"
#include "antlr4-runtime/TokenStream.h"
#include "antlr4-runtime/TokenStreamRewriter.h"
#include "antlr4-runtime/UnbufferedCharStream.h"
#include "antlr4-runtime/UnbufferedTokenStream.h"
#include "antlr4-runtime/Version.h"
#include "antlr4-runtime/Vocabulary.h"
#include "antlr4-runtime/WritableToken.h"
#include "antlr4-runtime/antlr4-common.h"
#include "antlr4-runtime/antlr4-runtime.h"
#include "antlr4-runtime/atn/ATN.h"
#include "antlr4-runtime/atn/ATNConfig.h"
#include "antlr4-runtime/atn/ATNConfigSet.h"
#include "antlr4-runtime/atn/ATNDeserializationOptions.h"
#include "antlr4-runtime/atn/ATNDeserializer.h"
#include "antlr4-runtime/atn/ATNSimulator.h"
#include "antlr4-runtime/atn/ATNState.h"
#include "antlr4-runtime/atn/ATNStateType.h"
#include "antlr4-runtime/atn/ATNType.h"
#include "antlr4-runtime/atn/ActionTransition.h"
#include "antlr4-runtime/atn/AmbiguityInfo.h"
#include "antlr4-runtime/atn/ArrayPredictionContext.h"
#include "antlr4-runtime/atn/AtomTransition.h"
#include "antlr4-runtime/atn/BasicBlockStartState.h"
#include "antlr4-runtime/atn/BasicState.h"
#include "antlr4-runtime/atn/BlockEndState.h"
#include "antlr4-runtime/atn/BlockStartState.h"
#include "antlr4-runtime/atn/ContextSensitivityInfo.h"
#include "antlr4-runtime/atn/DecisionEventInfo.h"
#include "antlr4-runtime/atn/DecisionInfo.h"
#include "antlr4-runtime/atn/DecisionState.h"
#include "antlr4-runtime/atn/EpsilonTransition.h"
#include "antlr4-runtime/atn/ErrorInfo.h"
#include "antlr4-runtime/atn/HashUtils.h"
#include "antlr4-runtime/atn/LL1Analyzer.h"
#include "antlr4-runtime/atn/LexerATNConfig.h"
#include "antlr4-runtime/atn/LexerATNSimulator.h"
#include "antlr4-runtime/atn/LexerAction.h"
#include "antlr4-runtime/atn/LexerActionExecutor.h"
#include "antlr4-runtime/atn/LexerActionType.h"
#include "antlr4-runtime/atn/LexerChannelAction.h"
#include "antlr4-runtime/atn/LexerCustomAction.h"
#include "antlr4-runtime/atn/LexerIndexedCustomAction.h"
#include "antlr4-runtime/atn/LexerModeAction.h"
#include "antlr4-runtime/atn/LexerMoreAction.h"
#include "antlr4-runtime/atn/LexerPopModeAction.h"
#include "antlr4-runtime/atn/LexerPushModeAction.h"
#include "antlr4-runtime/atn/LexerSkipAction.h"
#include "antlr4-runtime/atn/LexerTypeAction.h"
#include "antlr4-runtime/atn/LookaheadEventInfo.h"
#include "antlr4-runtime/atn/LoopEndState.h"
#include "antlr4-runtime/atn/NotSetTransition.h"
#include "antlr4-runtime/atn/OrderedATNConfigSet.h"
#include "antlr4-runtime/atn/ParseInfo.h"
#include "antlr4-runtime/atn/ParserATNSimulator.h"
#include "antlr4-runtime/atn/ParserATNSimulatorOptions.h"
#include "antlr4-runtime/atn/PlusBlockStartState.h"
#include "antlr4-runtime/atn/PlusLoopbackState.h"
#include "antlr4-runtime/atn/PrecedencePredicateTransition.h"
#include "antlr4-runtime/atn/PredicateEvalInfo.h"
#include "antlr4-runtime/atn/PredicateTransition.h"
#include "antlr4-runtime/atn/PredictionContext.h"
#include "antlr4-runtime/atn/PredictionContextCache.h"
#include "antlr4-runtime/atn/PredictionContextMergeCache.h"
#include "antlr4-runtime/atn/PredictionContextMergeCacheOptions.h"
#include "antlr4-runtime/atn/PredictionContextType.h"
#include "antlr4-runtime/atn/PredictionMode.h"
#include "antlr4-runtime/atn/ProfilingATNSimulator.h"
#include "antlr4-runtime/atn/RangeTransition.h"
#include "antlr4-runtime/atn/RuleStartState.h"
#include "antlr4-runtime/atn/RuleStopState.h"
#include "antlr4-runtime/atn/RuleTransition.h"
#include "antlr4-runtime/atn/SemanticContext.h"
#include "antlr4-runtime/atn/SemanticContextType.h"
#include "antlr4-runtime/atn/SerializedATNView.h"
#include "antlr4-runtime/atn/SetTransition.h"
#include "antlr4-runtime/atn/SingletonPredictionContext.h"
#include "antlr4-runtime/atn/StarBlockStartState.h"
#include "antlr4-runtime/atn/StarLoopEntryState.h"
#include "antlr4-runtime/atn/StarLoopbackState.h"
#include "antlr4-runtime/atn/TokensStartState.h"
#include "antlr4-runtime/atn/Transition.h"
#include "antlr4-runtime/atn/TransitionType.h"
#include "antlr4-runtime/atn/WildcardTransition.h"
#include "antlr4-runtime/dfa/DFA.h"
#include "antlr4-runtime/dfa/DFASerializer.h"
#include "antlr4-runtime/dfa/DFAState.h"
#include "antlr4-runtime/dfa/LexerDFASerializer.h"
#include "antlr4-runtime/internal/Synchronization.h"
#include "antlr4-runtime/misc/InterpreterDataReader.h"
#include "antlr4-runtime/misc/Interval.h"
#include "antlr4-runtime/misc/IntervalSet.h"
#include "antlr4-runtime/misc/MurmurHash.h"
#include "antlr4-runtime/misc/Predicate.h"
#include "antlr4-runtime/support/Any.h"
#include "antlr4-runtime/support/Arrays.h"
#include "antlr4-runtime/support/BitSet.h"
#include "antlr4-runtime/support/CPPUtils.h"
#include "antlr4-runtime/support/Casts.h"
#include "antlr4-runtime/support/Declarations.h"
#include "antlr4-runtime/support/StringUtils.h"
#include "antlr4-runtime/support/Unicode.h"
#include "antlr4-runtime/support/Utf8.h"
#include "antlr4-runtime/tree/AbstractParseTreeVisitor.h"
#include "antlr4-runtime/tree/ErrorNode.h"
#include "antlr4-runtime/tree/ErrorNodeImpl.h"
#include "antlr4-runtime/tree/IterativeParseTreeWalker.h"
#include "antlr4-runtime/tree/ParseTree.h"
#include "antlr4-runtime/tree/ParseTreeListener.h"
#include "antlr4-runtime/tree/ParseTreeProperty.h"
#include "antlr4-runtime/tree/ParseTreeType.h"
#include "antlr4-runtime/tree/ParseTreeVisitor.h"
#include "antlr4-runtime/tree/ParseTreeWalker.h"
#include "antlr4-runtime/tree/TerminalNode.h"
#include "antlr4-runtime/tree/TerminalNodeImpl.h"
#include "antlr4-runtime/tree/Trees.h"
#include "antlr4-runtime/tree/pattern/Chunk.h"
#include "antlr4-runtime/tree/pattern/ParseTreeMatch.h"
#include "antlr4-runtime/tree/pattern/ParseTreePattern.h"
#include "antlr4-runtime/tree/pattern/ParseTreePatternMatcher.h"
#include "antlr4-runtime/tree/pattern/RuleTagToken.h"
#include "antlr4-runtime/tree/pattern/TagChunk.h"
#include "antlr4-runtime/tree/pattern/TextChunk.h"
#include "antlr4-runtime/tree/pattern/TokenTagToken.h"
#include "antlr4-runtime/tree/xpath/XPath.h"
#include "antlr4-runtime/tree/xpath/XPathElement.h"
#include "antlr4-runtime/tree/xpath/XPathLexer.h"
#include "antlr4-runtime/tree/xpath/XPathLexerErrorListener.h"
#include "antlr4-runtime/tree/xpath/XPathRuleAnywhereElement.h"
#include "antlr4-runtime/tree/xpath/XPathRuleElement.h"
#include "antlr4-runtime/tree/xpath/XPathTokenAnywhereElement.h"
#include "antlr4-runtime/tree/xpath/XPathTokenElement.h"
#include "antlr4-runtime/tree/xpath/XPathWildcardAnywhereElement.h"
#include "antlr4-runtime/tree/xpath/XPathWildcardElement.h"
#include "atn/ATN.h"
#include "atn/ATNConfig.h"
#include "atn/ATNConfigSet.h"
#include "atn/ATNDeserializationOptions.h"
#include "atn/ATNDeserializer.h"
#include "atn/ATNSimulator.h"
#include "atn/ATNState.h"
#include "atn/ATNStateType.h"
#include "atn/ATNType.h"
#include "atn/ActionTransition.h"
#include "atn/AmbiguityInfo.h"
#include "atn/ArrayPredictionContext.h"
#include "atn/AtomTransition.h"
#include "atn/BasicBlockStartState.h"
#include "atn/BasicState.h"
#include "atn/BlockEndState.h"
#include "atn/BlockStartState.h"
#include "atn/ContextSensitivityInfo.h"
#include "atn/DecisionEventInfo.h"
#include "atn/DecisionInfo.h"
#include "atn/DecisionState.h"
#include "atn/EpsilonTransition.h"
#include "atn/ErrorInfo.h"
#include "atn/HashUtils.h"
#include "atn/LL1Analyzer.h"
#include "atn/LexerATNConfig.h"
#include "atn/LexerATNSimulator.h"
#include "atn/LexerAction.h"
#include "atn/LexerActionExecutor.h"
#include "atn/LexerActionType.h"
#include "atn/LexerChannelAction.h"
#include "atn/LexerCustomAction.h"
#include "atn/LexerIndexedCustomAction.h"
#include "atn/LexerModeAction.h"
#include "atn/LexerMoreAction.h"
#include "atn/LexerPopModeAction.h"
#include "atn/LexerPushModeAction.h"
#include "atn/LexerSkipAction.h"
#include "atn/LexerTypeAction.h"
#include "atn/LookaheadEventInfo.h"
#include "atn/LoopEndState.h"
#include "atn/NotSetTransition.h"
#include "atn/OrderedATNConfigSet.h"
#include "atn/ParseInfo.h"
#include "atn/ParserATNSimulator.h"
#include "atn/ParserATNSimulatorOptions.h"
#include "atn/PlusBlockStartState.h"
#include "atn/PlusLoopbackState.h"
#include "atn/PrecedencePredicateTransition.h"
#include "atn/PredicateEvalInfo.h"
#include "atn/PredicateTransition.h"
#include "atn/PredictionContext.h"
#include "atn/PredictionContextCache.h"
#include "atn/PredictionContextMergeCache.h"
#include "atn/PredictionContextMergeCacheOptions.h"
#include "atn/PredictionContextType.h"
#include "atn/PredictionMode.h"
#include "atn/ProfilingATNSimulator.h"
#include "atn/RangeTransition.h"
#include "atn/RuleStartState.h"
#include "atn/RuleStopState.h"
#include "atn/RuleTransition.h"
#include "atn/SemanticContext.h"
#include "atn/SemanticContextType.h"
#include "atn/SerializedATNView.h"
#include "atn/SetTransition.h"
#include "atn/SingletonPredictionContext.h"
#include "atn/StarBlockStartState.h"
#include "atn/StarLoopEntryState.h"
#include "atn/StarLoopbackState.h"
#include "atn/TokensStartState.h"
#include "atn/Transition.h"
#include "atn/TransitionType.h"
#include "atn/WildcardTransition.h"
#include "dfa/DFA.h"
#include "dfa/DFASerializer.h"
#include "dfa/DFAState.h"
#include "dfa/LexerDFASerializer.h"
#include "internal/Synchronization.h"
#include "misc/InterpreterDataReader.h"
#include "misc/Interval.h"
#include "misc/IntervalSet.h"
#include "misc/MurmurHash.h"
#include "misc/Predicate.h"
#include "support/Any.h"
#include "support/Arrays.h"
#include "support/BitSet.h"
#include "support/CPPUtils.h"
#include "support/Casts.h"
#include "support/Declarations.h"
#include "support/StringUtils.h"
#include "support/Unicode.h"
#include "support/Utf8.h"
#include "tree/AbstractParseTreeVisitor.h"
#include "tree/ErrorNode.h"
#include "tree/ErrorNodeImpl.h"
#include "tree/IterativeParseTreeWalker.h"
#include "tree/ParseTree.h"
#include "tree/ParseTreeListener.h"
#include "tree/ParseTreeProperty.h"
#include "tree/ParseTreeType.h"
#include "tree/ParseTreeVisitor.h"
#include "tree/ParseTreeWalker.h"
#include "tree/TerminalNode.h"
#include "tree/TerminalNodeImpl.h"
#include "tree/Trees.h"
#include "tree/pattern/Chunk.h"
#include "tree/pattern/ParseTreeMatch.h"
#include "tree/pattern/ParseTreePattern.h"
#include "tree/pattern/ParseTreePatternMatcher.h"
#include "tree/pattern/RuleTagToken.h"
#include "tree/pattern/TagChunk.h"
#include "tree/pattern/TextChunk.h"
#include "tree/pattern/TokenTagToken.h"
#include "tree/xpath/XPath.h"
#include "tree/xpath/XPathElement.h"
#include "tree/xpath/XPathLexer.h"
#include "tree/xpath/XPathLexerErrorListener.h"
#include "tree/xpath/XPathRuleAnywhereElement.h"
#include "tree/xpath/XPathRuleElement.h"
#include "tree/xpath/XPathTokenAnywhereElement.h"
#include "tree/xpath/XPathTokenElement.h"
#include "tree/xpath/XPathWildcardAnywhereElement.h"
#include "tree/xpath/XPathWildcardElement.h"