Liste des Groupes | Revenir à cu shell |
On 2024-11-20, Janis Papanagnou <janis_papanagnou+ng@hotmail.com> wrote:I'm curious what you mean by Regexps presented in a "procedural" form.>
Can you give some examples?
Here is an example: using a regex match to capture a C comment /* ... */
in Lex compared to just recognizing the start sequence /* and handling
the discarding of the comment in the action.
>
Without non-greedy repetition matching, the regex for a C comment is
quite obtuse. The procedural handling is straightforward: read
characters until you see a * immediately followed by a /.
Les messages affichés proviennent d'usenet.