Parrot Tutorial PDF Version Quick Guide Resources Job Search Discussion Parrot is a virtual machine designed to efficiently compile and execute bytecode for interpreted languages. Parrot is designed for dynamic languages. Parrot is a target of variety of languages like Perl, Tcl, Ruby, Python, etc. In this tutorial, we shall learn using Parrot for Perl compiler. Audience This tutorial is designed for users who wish to learn the basics of Parrot and how it works. It explains how to use Parrot with Perl. Parrot is going to change the way you see PERL! Prerequisites This tutorial expects a basic understanding of compilation and interpretation concepts. User should have knowledge of Perl. Print Page Previous Next Advertisements ”;
Category: parrot
Parrot – Installation
Parrot – Installation ”; Previous Next Before we start, let”s download one latest copy of Parrot and install it on our machine. Parrot download link is available in Parrot CVS Snapshot. Download the latest version of Parrot and to install it follow the following steps: Unzip and untar the downloaded file. Make sure you already have Perl 5 installed on your machine. Now do the following: % cd parrot % perl Configure.pl Parrot Configure Copyright (C) 2001 Yet Another Society Since you”re running this script, you obviously have Perl 5 — I”ll be pulling some defaults from its configuration. … You”ll then be asked a series of questions about your local configuration; you can almost always hit return/enter for each one. Finally, you”ll be told to type – make test_prog, and Parrot will successfully build the test interpreter. Now you should run some tests; so type ”make test” and you should see a readout like the following: perl t/harness t/op/basic…..ok,1/2 skipped:label constants unimplemented in assembler t/op/string….ok, 1/4 skipped: I”m unable to write it! All tests successful, 2 subtests skipped. Files=2, Tests=6,…… By the time you read this, there could be more tests, and some of those which skipped might not skip, but make sure that none of them should fail! Once you have a parrot executable installed, you can check out the various types of examples given in Parrot ”Examples” section. Also you can check out the examples directory in the parrot repository. Print Page Previous Next Advertisements ”;