[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: multiline regex mode?
From: |
Dieter Wilhelm |
Subject: |
Re: multiline regex mode? |
Date: |
Sat, 25 Nov 2006 19:33:44 +0100 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
Perry Smith <pedz@easesoftware.com> writes:
> On Nov 25, 2006, at 7:14 AM, Peter Dyballa wrote:
>
> I think you can't use one regular expression for a variety of
> nested "*balanced* brackets like { { } }".
>
> Correct.
>
....
>
> The easiest way to do a PDA in lisp is with recursive decent and a
> rather simple lisp function can call itself when it hits a second {
> and return when it hits a }. When the last function returns, you
> have hit the matching } of the first {.
>
>
> All that aside, emacs has code written to balance parens, braces,
> brackets, etc. You can look at forward-sexp as a starting point.
> And, in the case of emacs, it is pretty flexible. By specifying
> syntax tables, you can tell it what characters match each other.
> Look at modify-syntax-entry for that piece of the puzzle.
>
>
>
> Hope this helps...
>
It does, thanks
--
Best wishes
H. Dieter Wilhelm
Darmstadt, Germany