Is it possible to create regexes from an entire code? [closed]
Closed 3 mins ago.
Is it posible to create regexes from an entire code?
I would like to know if it is possible to write a program that creates regexes from an entire C++ source code. what i mean by this, is that the program reads the code, and then creates regexes for parts of the code. i want to create something that keeps the type then uses (w+) for the variable name. I know that it is simple to code for easy cases but i wonder if it even is possible for more complicated code. i also want that the regex that is created a specific regex is that i can access later or so like for example (w+)1.