Re: Module Submission: Regexp::MultiLanguage



Yes - it's easily extendable - there's 5 functions you have to write
for your Regexp::MultiLanguage::YourLanguage module. Each 'dialect' is
generally only 20 lines long - at this point the three languages that
are there were just the top priorities.

- Robby

Sherm Pendley wrote:
robby.walker@xxxxxxxxx writes:

I'm working on a project where I need to use a set of common regular
expressions in more than one programming language. To facilitate this,
I've written Regexp::MultiLanguage which parses a simple language and
produces code that works in Perl, PHP, and JavaScript. (plus, adding
new languages is easy) Sound useful? Is this already implemented? Is
the name OK?

It sounds like it might be useful, and I've no issues with the name, but
it does sound rather incomplete. What about sed, Java, PCRE, etc?

More to the point I suppose, do you plan to provide a mechanism for users
to add new language support modules? Regexp::MultiLanguage::Java for
instance. If you do provide such a mechanism, then the languages that
happen to be supported by the "core" module becomes much less critical.

sherm--

--
Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org

.



Relevant Pages

  • Re: syntax extension, was Why context-free?
    ... >of a different character - Knuth himself gives several examples in The ... Perl has its sweet spot domains (as a child of sed, ... with every branch tested both for correctness of the ... That someone who is a skilled programmer in some languages ...
    (comp.compilers)
  • Re: syntax extension, was Why context-free?
    ... because TeX doesn't have a precise description (merely a guide on ... Perl has its sweet spot domains (as a child of sed, ... with every branch tested both for correctness of the ... But there are plenty of wonderful languages ...
    (comp.compilers)
  • Miscellanous Language Ranting (was Re: For performance, write it in C - Part 2, comparing C, Rub
    ... but object oriented programming isn't ... lot of things better than Perl, ... Given the available libraries for Perl, Ruby and R, I _could_ do the entire job with any one of the three languages, at least on Linux. ... Stereotyping both Java and ...
    (comp.lang.ruby)
  • Re: COBOL compiler
    ... On Tue, 26 Aug 2003, Bijan Soleymani wrote: ... >> Some time after I left the COBOL job, ... > I find that Perl is a very nice language that avoids such low-level ... There's a whole family of such scripting languages that begin ...
    (Debian-User)
  • Re: Question about wizard Perl programmers
    ... Looking at books on all the languages of the past (I'm a ... I'd say perl is about the easiest language to actually work in, ... s x x length uc ord and print chr ... xor eval xor print qq q q xor int ...
    (comp.lang.perl.misc)