hi,
as im new to python i dont how to do this question can some help me out, the question is:
Write a lexer to read in decimal numbers. Think hard about how to do this. If your input is
the following string: “12345.9876” what do you have to do to each character in the string
to generate your float? How are the numbers before the decimal point different to the
numbers after the decimal point? Make sure you have an algorithm that works correctly
on paper before you start coding and draw a state transition diagram for the scanning part
of your lexer.
i noticed on the website you guys have code snippets so can some point me into the right dirrect of code or if some has already answer this question plz show their post so that i can get an idea
lexer python
Page 1 of 1
lexer python
#2
Posted 04 April 2009 - 08:55 AM
Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.
Please post like this:
Thank you for helping us helping you.
Please post like this:
Thank you for helping us helping you.
Page 1 of 1

Start a new topic
Add Reply




MultiQuote

| 


