Perl for .NET Research Compiler

The first approach was to create a full Perl compiler, generating verifiable .NET Intermediate Language (IL) code and supporting all features of the Common Language Specification (CLS).

The implementation phase of this project started in early 2000. The major parts of the project were the parser, the code generator, and the runtime support library.

The Parser

Perl syntax is especially difficult to parse, as it doesn't have a context-free grammar. Parts of already-compiled code may be executed during compile time, altering the way additional code is being parsed: Both the use statement and BEGIN blocks are executed as soon as they are completely parsed.

As parentheses on function calls are optional in Perl, the ...

Get Programming in the .NET Environment now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.