Blame src/pyscanner.h

Packit Service 50c9f2
/******************************************************************************
Packit Service 50c9f2
 *
Packit Service 50c9f2
 * 
Packit Service 50c9f2
 *
Packit Service 50c9f2
 * Copyright (C) 1997-2015 by Dimitri van Heesch.
Packit Service 50c9f2
 *
Packit Service 50c9f2
 * Permission to use, copy, modify, and distribute this software and its
Packit Service 50c9f2
 * documentation under the terms of the GNU General Public License is hereby 
Packit Service 50c9f2
 * granted. No representations are made about the suitability of this software 
Packit Service 50c9f2
 * for any purpose. It is provided "as is" without express or implied warranty.
Packit Service 50c9f2
 * See the GNU General Public License for more details.
Packit Service 50c9f2
 *
Packit Service 50c9f2
 * Documents produced by Doxygen are derivative works derived from the
Packit Service 50c9f2
 * input used in their production; they are not affected by this license.
Packit Service 50c9f2
 *
Packit Service 50c9f2
 */
Packit Service 50c9f2
/*  This code is based on the work done by the MoxyPyDoxy team
Packit Service 50c9f2
 *  (Linda Leong, Mike Rivera, Kim Truong, and Gabriel Estrada)
Packit Service 50c9f2
 *  in Spring 2005 as part of CS 179E: Compiler Design Project
Packit Service 50c9f2
 *  at the University of California, Riverside; the course was
Packit Service 50c9f2
 *  taught by Peter H. Froehlich <phf@acm.org>.
Packit Service 50c9f2
 */
Packit Service 50c9f2
Packit Service 50c9f2
Packit Service 50c9f2
#ifndef PYSCANNER_H
Packit Service 50c9f2
#define PYSCANNER_H
Packit Service 50c9f2
Packit Service 50c9f2
#include "parserintf.h"
Packit Service 50c9f2
Packit Service 50c9f2
/** \brief Python Language parser using state-based lexical scanning.
Packit Service 50c9f2
 *
Packit Service 50c9f2
 * This is the Python language parser for doxygen.
Packit Service 50c9f2
 */
Packit Service 50c9f2
class PythonLanguageScanner : public ParserInterface
Packit Service 50c9f2
{
Packit Service 50c9f2
  public:
Packit Service 50c9f2
    virtual ~PythonLanguageScanner() {}
Packit Service 50c9f2
    void startTranslationUnit(const char *) {}
Packit Service 50c9f2
    void finishTranslationUnit() {}
Packit Service 50c9f2
    void parseInput(const char * fileName, 
Packit Service 50c9f2
                    const char *fileBuf, 
Packit Service 50c9f2
                    Entry *root,
Packit Service 50c9f2
                    bool sameTranslationUnit,
Packit Service 50c9f2
                    QStrList &filesInSameTranslationUnit);
Packit Service 50c9f2
    bool needsPreprocessing(const QCString &extension);
Packit Service 50c9f2
    void parseCode(CodeOutputInterface &codeOutIntf,
Packit Service 50c9f2
                   const char *scopeName,
Packit Service 50c9f2
                   const QCString &input,
Packit Service 50c9f2
                   SrcLangExt lang,
Packit Service 50c9f2
                   bool isExampleBlock,
Packit Service 50c9f2
                   const char *exampleName=0,
Packit Service 50c9f2
                   FileDef *fileDef=0,
Packit Service 50c9f2
                   int startLine=-1,
Packit Service 50c9f2
                   int endLine=-1,
Packit Service 50c9f2
                   bool inlineFragment=FALSE,
Packit Service 50c9f2
                   MemberDef *memberDef=0,
Packit Service 50c9f2
                   bool showLineNumbers=TRUE,
Packit Service 50c9f2
                   Definition *searchCtx=0,
Packit Service 50c9f2
                   bool collectXrefs=TRUE
Packit Service 50c9f2
                  );
Packit Service 50c9f2
    void resetCodeParserState();
Packit Service 50c9f2
    void parsePrototype(const char *text);
Packit Service 50c9f2
};
Packit Service 50c9f2
Packit Service 50c9f2
void pyscanFreeScanner();
Packit Service 50c9f2
Packit Service 50c9f2
#endif