Skip to content

RFC: line oriented statefull regex parser #3889

@masatake

Description

@masatake

After studying ctags for a long time, I have recognized what users, including myself, want is the way to define a "line-oriented stateful regex parser."

Currently, we have three:

  • --regex-: an option for defining a line-oriented stateless regex parser,
  • --mline-regex-: an option for defining a multiline-oriented stateless regex parser, and
  • --_mtable-regex-: an option for defining byte-oriented stateful regex parser.

We can write a line-oriented stateful regex parser with --_mtable-regex. However, the parser definition with the option becomes a bit complicated. --_mtable-regex is too powerful for the purpose.

I'm looking for a good option name for defining a line-oriented stateful regex parser.

  • --lregex-=TABLE/PATTERN/...
  • --regex2-=TABLE/PATTERN/...
  • --ltable-=TABLE/PATTERM/...
  • --pcre2-=TABLE/PATTERN/...
  • --stable-=TABLE/PATTERN/...
  • ...

Which one do you like?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions