Navigation

  • index
  • next |
  • previous |
  • Universal Ctags 0.3.0 documentation »
  • Extending ctags with a parser written in C

Extending ctags with a parser written in CΒΆ

This chapter describes how to add a parser in C and the internal API of Universal Ctags.

Before you start writing a parser in C, consider using optlib parser. Universal Ctags extends the functionality so extensively that it can implement most of functionality for the parser. See ctags-optlib(7) and Extending ctags with Regex parser (optlib) for details.

optlib parser is also suitable for prototyping of a parser in C.

  • Writing a parser in C
    • Registering a parser
    • Reading input file stream
    • Parsing
    • Adding a tag to the tag file
    • Adding the parser to ctags
    • Misc.
  • Input text stream
    • inputFile type and the functions of input group
    • The functions of bypass group
    • The functions of raw group
  • Output tag stream
    • cork API
      • Background and Idea
      • How to use
      • Automatic full qualified tag generation
  • tokenInfo API
  • Multiple parsers
    • Guest parser (promise API)
      • Background and Idea
      • Usage
      • Internal design
    • API for subparser
      • Outline
      • Fields of subparser type
      • Extending subparser type
      • Making a tag in a subparser
      • Calling methods of subparsers from a base parser
      • Registering a subparser to its base parser
      • Scheduling running the base parser
  • PackCC compiler-compiler
  • Automatic parser guessing (TBW)
  • Managing regular expression parsers (TBW)
  • Ghost kind in regex parser (TBW)

Previous topic

Optscript, a programming language for extending optlib parsers

Next topic

Writing a parser in C

Quick search

Navigation

  • index
  • next |
  • previous |
  • Universal Ctags 0.3.0 documentation »
  • Extending ctags with a parser written in C
© Copyright 2015, Universal Ctags Team. Last updated on 11 Jun 2021. Created using Sphinx 4.0.2.