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: Quick question about using a table of text input fields within a javascrip function
    ... as he quotes the charter correctly (as I ... While not everyone interested in ECMAScript will know perl, ... other related languages (presumably any language used for CGI ... the only language I use for CGI programming. ...
    (comp.lang.javascript)
  • 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)
  • Re: a good career choice ?
    ... I don't believe that Perl is an old language that's ... existing modules that maybe don't exist for Ruby or anything. ... opinion abut ruby and other languages. ...
    (comp.lang.ruby)
  • Re: a good career choice ?
    ... I don't believe that Perl is an old language that's ... existing modules that maybe don't exist for Ruby or anything. ... opinion abut ruby and other languages. ...
    (comp.lang.ruby)