Find the answer to your Linux question:
Results 1 to 4 of 4
Hey guys, As some of you know that I am new to this forum. I have another problem that I got stuck on. I have this file called "Fib.rbb" and ...
  1. #1
    Just Joined!
    Join Date
    Mar 2010
    Posts
    9

    [Perl] Interpreter for Fib numbers

    Hey guys,

    As some of you know that I am new to this forum. I have another problem that I got stuck on. I have this file called "Fib.rbb" and my instructor told us to write an interpreter program by using Fib.rbb.

    "You are to write an interpreter in Perl for Rong’s Basic Basic (RBB) as explained in class. The BNF description for RBB and a test file called Fib.rbb are part of the RBB.zip file which is available in the Course Documents folder on blackboard. If you call your interpreter myIntp.pl, you would execute the program via perl myIntp.pl Fib.rbb

    Code:
    Print "A few Fibonacci numbers:"
    X = 1
    Print X
    Y = 1
    Print Y
    10 If Y >= 20
         Goto 100
        EndIf
    Temp = X + Y
    X = Y
    Y = Temp
    Print Y
    Goto 10
    100 End
    Can you guys give me an idea and help me out on this? I am not asking to do my work.

  2. #2
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    this is exactly a homework question, and you indeed ARE asking us to do your work for you

    it is against forum rules to post homework questions, though we will be more than helpful with specific questions you have about languages, syntax, etc.

  3. #3
    Just Joined!
    Join Date
    Mar 2010
    Posts
    9
    Do you see any where "some1 do this program for me?" type of thing?

    I said can you give me an idea.

    Read the post or think twice before you say something.

  4. #4
    Trusted Penguin Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,230
    smsh, please remember that this is a community-run website, and we are all volunteers here. Please be respectful.

    Having said that, I agree with coopstah13, and this is an inappropriate question. If you have a question about some specific concept, we are happy to help, but we cannot design a homework solution for you.

    Thread closed.
    DISTRO=Arch
    Registered Linux User #388732

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...