Find Jobs
Hire Freelancers

SCHEME simple model of Lexicograhical Analyzer

$30-130 USD

Completed
Posted over 19 years ago

$30-130 USD

Paid on delivery
Programming Assignment II SCHEME **MUST BE WRITTEN IN SCHEME AND RUN USING THE SCM INTREPETER ON UNIX **SEE ATTACHMENT FOR A BETTER FORMATTED DESCRIPTION & HINTS Basically every data structure here is represented by atoms, strings and lists, and lists of lists. No arrays or structures. A simple model of Lexicograhical Analyzer is to be constructed. The input is a simple arithmetic expression, IE. The results for output are a symbol table, ST and, a revised version of the input expression IE, called the output expression OE. The IE is a list representing a simple arithmetic expression. of the form: ( var = var op ... var op var ) where op is + or * The same var can appear more than once in an IE. Each variable in the list is to be assigned an integer identification, IntId. The integers are to run consecutively: 1, 2, 3...., with 1 being assigned to the first variable, 2 to the second (provided it is not the same as the first), etc. If a variable reoccurs in IE it is given the same integer identification as its first occurrence. The symbol table, ST, is to be built as a list, L, whose members are each a list, containing a pair of atoms; a var and the integer identification, IntId assigned to that variable. As stated earlier, in IE the same var may appear more than once. In ST there should be only one occurrence of each var from IE ,i.e., no two distinct pairs in ST contain the same var. The output expression, OE is formed from IE by replacing each var in IE with the integer identification that has been established for that var. Your input should be read from a file, The file name being a parameter of your program. Your output should be printed using the display command. ## Deliverables 1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Deliverables must be in ready-to-run condition, as follows? (depending on the nature? of the deliverables): a)? For web sites or? other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment. b) For all others including desktop software or software the buyer intends to distribute: A software? installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request. 3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement). ## Platform **MUST BE WRITTEN IN SCHEME AND RUN USING THE SCM INTREPETER ON UNIX
Project ID: 3405516

About the project

1 proposal
Remote project
Active 19 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
See private message.
$42.50 USD in 5 days
5.0 (17 reviews)
4.3
4.3

About the client

Flag of UNITED STATES
United States
5.0
13
Payment method verified
Member since Oct 28, 2001

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.