只能'perl6'解析Perl 6吗? [英] Can only 'perl6' parse Perl 6?

查看:88
本文介绍了只能'perl6'解析Perl 6吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

(相对)众所周知的Perl公理,只有perl才能解析Perl".我想知道,Perl  6仍然适用吗?

There's that (relatively) well known Perl axiom, "Only perl can parse Perl." I'm wondering, will that remain true for Perl 6?

扩大讨论范围...考虑到PyPy的最新更新,我想到了这个问题. Perl独特的可解析性是否会使它无法进行类似的工作?在Perl代码(PPI)的受限静态视图中,有什么价值? Perl  6可以有JIT编译器吗?*

Expanding the discussion... I thought of this question given the recent update of PyPy. Does Perl's unique parsability preclude it from similar efforts? Is there much value in a restricted, static view of Perl code (PPI?)? Can Perl 6 have a JIT compiler?*

*我不确定这些概念是否相关.是吗?

* I'm not sure if these concepts are related. Are they?

推荐答案

没有perl6,并且有很多Perl 6编译器. Perl 6具有语法,尽管它是用Perl 6编写的,只要您能理解,它就会告诉您所有您需要知道的内容.

There is no perl6, and there are many Perl 6 compilers. Perl 6 has a grammar, although it's written in Perl 6, so as long as you can understand that, it tells you everything you need to know.

我刚刚问过拉里(Larry)这个问题,因为我正坐在他对面坐在圣保罗Perl工作坊.他说,现在是只有Perl 6才能解析Perl 6",两个Perls上都使用大写字母,这意味着与原始声明有所不同.

I just asked Larry this question, since I'm sitting across from him at lunch at the São Paulo Perl Workshop. He says it's now "Only Perl 6 can parse Perl 6", with capital letters on both Perls, which means something different than the original statement.

尽管Perl 6的目标是一个标准和许多实现,但您不需要特定的程序即可执行此操作.没有"perl6",尽管Larry在今天的演讲中将其别名当作Rakudo的别名,尽管他为示例使用了几种不同的实现.

You don't need a specific program to do that though since Perl 6's goal is one standard and many implementations. There is no "perl6", although Larry had that aliased to his Rakudo for today's talk, even though he used a few different implementations for the examples.

这篇关于只能'perl6'解析Perl 6吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆