Language::Logo

Language::Logo Perl module is an implementation of the Logo programming language.
Download

Language::Logo Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • John C. Norton
  • Publisher web site:
  • http://search.cpan.org/~jcnorton/Language-Logo-1.000/lib/Language/Logo.pm

Language::Logo Tags


Language::Logo Description

Language::Logo Perl module is an implementation of the Logo programming language. Language::Logo Perl module is an implementation of the Logo programming language.SYNOPSIS use Language::Logo; my $lo = new Logo(update => 20); $lo->command("setxy 250 256"); $lo->command("color yellow"); $lo->command("pendown"); # Draw a circle for (my $i = 0; $i < 360; $i += 10) { $lo->command("forward 10; right 10"); } $lo->disconnect("Finished...")This module provides an implementation of the Logo programming language, with all of the necessary drawing primitives in a Tk Canvas. The Canvas object is also referred to as the "screen".The first construction of a Language::Logo object causes a server to be created in a separate process; this server then creates a Tk GUI with a Tk::Canvas for use by the client's "turtle", and responds to all requests from the client's commands. In this way, multiple clients may be constructed simultaneously -- each one with its own "turtle".In this first release, not all of the Logo language is implemented. Rather, the primary commands available are those which directly affect the turtle, and are related to drawing on the screen. The intent is to use the Logo in conjunction with Perl as a sort of "hybrid" language; Perl us used as the higher-level language layer through which all loop constructs, conditionals, and data-manipulation is done. This allows for a substantial level of programming power.Requirements:· Perl


Language::Logo Related Software