Kelly Jones | 24 May 2008 22:54
Picon

Converting PHP, Perl, Python, etc to Metal?

Are there tools to convert PHP/Perl/Python/etc to Metal?

When I see:

function addargs ($x,$y) {$z=$x+y; return $z;}

I think (using brackets because some mail clients don't like angle brackets):

[function name="addargs"]
 [arglist]
  [arg name="x" type="unknown"]
  [arg name="y" type="unknown"]
 [/arglist]
 [body]
  [line]z=x+y[/line]
  [return]z[/return]
 [/body]
[/function]

I realize that's not perfect Metal, but you get the idea.

I know PHP/Perl etc all have a "lexical/tokenizing" step when they're
compiled-- could they be converted to Metal at that step?

--

-- 
We're just a Bunch Of Regular Guys, a collective group that's trying
to understand and assimilate technology. We feel that resistance to
new ideas and technology is unwise and ultimately futile.

------------------------------------
(Continue reading)

Manuel Lemos | 28 May 2008 09:13
Picon
Favicon

Re: Converting PHP, Perl, Python, etc to Metal?

Hello,

on 05/24/2008 05:54 PM Kelly Jones said the following:
> Are there tools to convert PHP/Perl/Python/etc to Metal?
> 
> When I see:
> 
> function addargs ($x,$y) {$z=$x+y; return $z;}
> 
> I think (using brackets because some mail clients don't like angle brackets):
> 
> [function name="addargs"]
>  [arglist]
>   [arg name="x" type="unknown"]
>   [arg name="y" type="unknown"]
>  [/arglist]
>  [body]
>   [line]z=x+y[/line]
>   [return]z[/return]
>  [/body]
> [/function]
> 
> I realize that's not perfect Metal, but you get the idea.
> 
> I know PHP/Perl etc all have a "lexical/tokenizing" step when they're
> compiled-- could they be converted to Metal at that step?

AFAIK there are no tools for converting between languages. It is a
possibility, but the MetaL project did not went into that direction.

(Continue reading)


Gmane