From: Simon Strandgaard Date: 2003-10-09T07:10:42+09:00 Subject: Re: Extension Language for a Text Editor On Wed, 08 Oct 2003 22:39:13 +0000, gabriele renzi wrote: > Anyway, why would you do such a thing ? the regex language is quite > standardized now, why would you change it? I am in the process of writing my own regex engine (for AEditor). The reason why I cannot use Ruby's are, that I must run regex's on a wide range of iterators. I want to use same syntax as Ruby's regex, and perhaps extend it with some editor stuff, perhaps like: * how to traverse the datastructure, jump over folds, jump into folds. * regex on columnar selections. * mechanism for getting the syntax-state: perhaps a regex which only operates inside comments, apply regex to variable-names, etc. Status for my regex project: DONE studies of how Rubys GNU-regex engine behave. DONE nfa 2 dfa. DONE regex-datastructure 2 nfa. TODO translate regex-string into regex-datastructure There is probably some item which I have overseen. You can check it out here: http://rubyforge.org/cgi-bin/cvsweb.cgi/projects/experimental/nfa_to_dfa/?cvsroot=aeditor -- Simon Strandgaard