Sha256: 2e696b6f0299362f62aa99f8f63358dee7ca710130ef2052dad207081726f074

Contents?: true

Size: 1.95 KB

Versions: 28

Compression:

Stored size: 1.95 KB

Contents

/* Copyright (c) 2012-2017 The ANTLR Project. All rights reserved.
 * Use of this file is governed by the BSD 3-clause license that
 * can be found in the LICENSE.txt file in the project root.
 */

#pragma once

#include "Lexer.h"
#include "atn/PredictionContext.h"
#include "Vocabulary.h"

namespace antlr4 {

  class ANTLR4CPP_PUBLIC LexerInterpreter : public Lexer {
  public:
    // @deprecated
    LexerInterpreter(const std::string &grammarFileName, const std::vector<std::string> &tokenNames,
                     const std::vector<std::string> &ruleNames, const std::vector<std::string> &channelNames,
                     const std::vector<std::string> &modeNames, const atn::ATN &atn, CharStream *input);
    LexerInterpreter(const std::string &grammarFileName, const dfa::Vocabulary &vocabulary,
                     const std::vector<std::string> &ruleNames, const std::vector<std::string> &channelNames,
                     const std::vector<std::string> &modeNames, const atn::ATN &atn, CharStream *input);

    ~LexerInterpreter();

    virtual const atn::ATN& getATN() const override;
    virtual std::string getGrammarFileName() const override;
    virtual const std::vector<std::string>& getTokenNames() const override;
    virtual const std::vector<std::string>& getRuleNames() const override;
    virtual const std::vector<std::string>& getChannelNames() const override;
    virtual const std::vector<std::string>& getModeNames() const override;

    virtual const dfa::Vocabulary& getVocabulary() const override;

  protected:
    const std::string _grammarFileName;
    const atn::ATN &_atn;

    // @deprecated
    std::vector<std::string> _tokenNames;
    const std::vector<std::string> &_ruleNames;
    const std::vector<std::string> &_channelNames;
    const std::vector<std::string> &_modeNames;
    std::vector<dfa::DFA> _decisionToDFA;

    atn::PredictionContextCache _sharedContextCache;

  private:
    dfa::Vocabulary _vocabulary;
  };

} // namespace antlr4

Version data entries

28 entries across 28 versions & 2 rubygems

Version Path
expressir-1.2.4 ext/express-parser/antlr4-upstream/runtime/Cpp/runtime/src/LexerInterpreter.h
expressir-1.2.3 ext/express-parser/antlr4-upstream/runtime/Cpp/runtime/src/LexerInterpreter.h
expressir-1.2.1 ext/express-parser/antlr4-upstream/runtime/Cpp/runtime/src/LexerInterpreter.h
expressir-1.2.0 ext/express-parser/antlr4-upstream/runtime/Cpp/runtime/src/LexerInterpreter.h
expressir-1.1.0 ext/express-parser/antlr4-upstream/runtime/Cpp/runtime/src/LexerInterpreter.h
expressir-1.0.0 ext/express-parser/antlr4-upstream/runtime/Cpp/runtime/src/LexerInterpreter.h
expressir-0.2.27 ext/express-parser/antlr4-upstream/runtime/Cpp/runtime/src/LexerInterpreter.h
expressir-0.2.26 ext/express-parser/antlr4-upstream/runtime/Cpp/runtime/src/LexerInterpreter.h
expressir-0.2.25 ext/express-parser/antlr4-upstream/runtime/Cpp/runtime/src/LexerInterpreter.h
expressir-0.2.24 ext/express-parser/antlr4-upstream/runtime/Cpp/runtime/src/LexerInterpreter.h
expressir-0.2.21 ext/express-parser/antlr4-upstream/runtime/Cpp/runtime/src/LexerInterpreter.h
expressir-0.2.19 ext/express-parser/antlr4-upstream/runtime/Cpp/runtime/src/LexerInterpreter.h
expressir-0.2.18 ext/express-parser/antlr4-upstream/runtime/Cpp/runtime/src/LexerInterpreter.h
expressir-0.2.17 ext/express-parser/antlr4-upstream/runtime/Cpp/runtime/src/LexerInterpreter.h
expressir-0.2.16 ext/express-parser/antlr4-upstream/runtime/Cpp/runtime/src/LexerInterpreter.h
expressir-0.2.15 ext/express-parser/antlr4-upstream/runtime/Cpp/runtime/src/LexerInterpreter.h
expressir-0.2.14 ext/express-parser/antlr4-upstream/runtime/Cpp/runtime/src/LexerInterpreter.h
expressir-0.2.13 ext/express-parser/antlr4-upstream/runtime/Cpp/runtime/src/LexerInterpreter.h
expressir-0.2.12 ext/express-parser/antlr4-upstream/runtime/Cpp/runtime/src/LexerInterpreter.h
expressir-0.2.11 ext/express-parser/antlr4-upstream/runtime/Cpp/runtime/src/LexerInterpreter.h