Formal semantics are a computer science thing, and are largely irrelevant in the context of real-world language implementations. For Perl 5, the behaviour of the perl program defines the Perl language. There is no specification or formal description of the semantics. If you really have to press Perl into your categories, then it might be possible to say that Perl is defined via operational semantics encoded in the perl interpreter.
发布评论
评论(1)
正式的语义是计算机科学的东西,在现实世界语言实施的背景下,很大程度上是无关紧要的。对于perl 5,
perl
程序的行为定义了perl语言。语义没有规格或正式描述。如果您确实必须将Perl按您的类别,那么可以说Perl是通过Perl
Instrumer中编码的操作语义来定义的。Formal semantics are a computer science thing, and are largely irrelevant in the context of real-world language implementations. For Perl 5, the behaviour of the
perl
program defines the Perl language. There is no specification or formal description of the semantics. If you really have to press Perl into your categories, then it might be possible to say that Perl is defined via operational semantics encoded in theperl
interpreter.