Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RFC: line oriented statefull regex parser #3889

Open
masatake opened this issue Dec 20, 2023 · 1 comment
Open

RFC: line oriented statefull regex parser #3889

masatake opened this issue Dec 20, 2023 · 1 comment
Milestone

Comments

@masatake
Copy link
Member

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?

@masatake masatake added this to the 7.0 milestone Dec 20, 2023
@jafl
Copy link
Contributor

jafl commented Dec 21, 2023

--stateful-regex

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants