atscc2pl: compiling ATS to Perl

瀏覽次數:51 次
跳到第一則未讀訊息

gmhwxi

未讀,
2014年11月18日 上午9:46:332014/11/18
收件者:ats-lan...@googlegroups.com

FYI.

Now there is a tool for compiling ATS into Perl:

https://github.com/githwxi/ATS-Postiats-contrib/tree/master/projects/MEDIUM/ATS-parse-emit/Perl

There are quite a few examples in the above directory.

The library code needed for the Perl code generated from ATS source is here:

https://github.com/githwxi/ATS-Postiats-contrib/tree/master/contrib/libatscc/libatscc2pl

So far, the following one is the largest working example:

https://github.com/githwxi/ATS-Postiats-contrib/tree/master/projects/SMALL/GameOf24/Perl

Cheers!

--Hongwei


Raoul Duke

未讀,
2014年11月18日 下午1:22:042014/11/18
收件者:ats-lang-users
as an old man, i have to say: yes!

gmhwxi

未讀,
2014年11月18日 下午1:33:532014/11/18
收件者:ats-lan...@googlegroups.com

It is mostly a straightforward exercise. I ended up using more
than 95% of atscc2php to construct atscc2pl.

I have to that I don't remember writing a single program in Perl after 2000.
The Perl now is very different from the Perl I once used. I am looking forward
to gaining some new Perl experience :)

Brandon Barker

未讀,
2014年11月18日 下午1:42:162014/11/18
收件者:ats-lang-users

You can likely find this at your local book store:

--
You received this message because you are subscribed to the Google Groups "ats-lang-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ats-lang-user...@googlegroups.com.
To post to this group, send email to ats-lan...@googlegroups.com.
Visit this group at http://groups.google.com/group/ats-lang-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/ats-lang-users/ef0200e5-39bc-48cd-8aea-bac4c0b31562%40googlegroups.com.
IMG_20141118_134038236.jpg

Barry Schwartz

未讀,
2014年11月18日 下午4:11:082014/11/18
收件者:ats-lan...@googlegroups.com
gmhwxi <gmh...@gmail.com> skribis:
> It is mostly a straightforward exercise. I ended up using more
> than 95% of atscc2php to construct atscc2pl.
>
> I have to that I don't remember writing a single program in Perl after 2000.
> The Perl now is very different from the Perl I once used. I am looking
> forward
> to gaining some new Perl experience :)

Same here, except <facetiously> I want my new Perl experience taken
back. :D I used it to write some of my simulations at
https://bitbucket.org/chemoelectric/programs-that-violate-bell-inequalities,
on grounds of its widespread availability. Perl has references and
stuff like that now.

I use Awk more often. Any idea <facetiously> when we can have
atscc2awk? :)

Brandon Barker

未讀,
2014年12月15日 下午5:13:372014/12/15
收件者:ats-lang-users
Of course, all these years later, I was curious what would turn up if I searched for "functional perl". 

I came to this page hopefully, but left feeling a bit worse than I had at the start:

Although I don't think atscc2pl can easily deal with this low-level bug (at least you don't get it for free), no one seems to have bothered rigging up a scheme to enforce pure subroutines in the few minutes I spent looking. So at least ATS offers this.


--
You received this message because you are subscribed to the Google Groups "ats-lang-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ats-lang-user...@googlegroups.com.
To post to this group, send email to ats-lan...@googlegroups.com.
Visit this group at http://groups.google.com/group/ats-lang-users.

Raoul Duke

未讀,
2014年12月15日 下午5:27:352014/12/15
收件者:ats-lang-users
what on earth is anybody doing with any kind of perl anything these
days, anyway? and even if for some reason you gotta do it with perl,
why the heck would anybody expect it to not be insane write-only
mumbo-jumbo, which of course means it cannot fall into the camp of,
"obviously no bugs".

(i did a fair bit of perl in my time. i even liked it once or twice.)
回覆所有人
回覆作者
轉寄
訊息已遭刪除
0 則新訊息