Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    Acme::URM 0.01

    Download button

    No screenshots available
    Downloads: 375  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Alexander Soudakov | More programs
    Perl Artistic License / FREE
    August 2nd, 2009, 22:26 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Acme::URM description

    URM (unlimited register machine) emulation

    Acme::URM is a Perl module that gives you the methods needed to emulate an URM in Perl.

    Why? Because we can.

    What is URM?

    URM stands for unlimited register machine.

    URM has unlimited number of registers: R0, R1, ... Those contain natural numbers: r0, r1, ... Default values for ri are 0.

    Instruction for URM is one of the following instructions:

     * Z(n) - set up register with index n to zero
     * S(n) - increment value of register with index n by 1
     * T(m, n) - set up register with index n to value of register with index m
     * J(m, n, q) - conditional instruction: if values of registers with indexes m, n are equal, then go to insturction with index q (zero based index), else move to following instruction

    Program of URM is a finite list of URM instructions.

    SYNOPSIS

     use Acme::URM;

     my $rm = Acme::URM->new();
     # program that summarize parameters given in R0,R1
     $urm->program(
     'T(0,2)',
     'T(1,3)',
     'J(3,4,6)',
     'S(2)',
     'S(4)',
     'J(0,0,2)',
     'T(0,3)',
     'J(3,1,'.Acme::URM::LAST.')',
     'J(3,2,11)',
     'S(3)',
     'J(0,0,7)',
     'T(1,0)',
     );

     $urm->register( 0, 2, 2 ); # fill the registers
     my $res = $urm->run(); # res must be 4



    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    URM emulation | unlimited register machine | Perl module | Perl | URM | emulation

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM