What Is a Scanner in Compiler Design?

  • Thread starter Thread starter SuperSusanoo
  • Start date Start date
  • Tags Tags
    Assignment
AI Thread Summary
A scanner in compiler design is responsible for reading input source code and converting it into tokens, which are the basic building blocks for further processing. The discussion highlights confusion regarding an assignment related to scanners, with a request for guidance on how to approach the topic. Participants emphasize the importance of understanding the scanner's function and suggest referring to textbooks or study materials for clarity. The thread indicates a lack of engagement from one participant, leading to a temporary lock until they demonstrate effort in addressing the assignment. Understanding the scanner's role is crucial for successfully completing the assignment.
SuperSusanoo
Messages
7
Reaction score
1

Homework Statement


I am totally lost with this assignment. I don't even know what to study in order to do it. I posted a file with the main feature of the assignment, so I am just wondering if you can orient me little bit. Any advise would be useful

First of all, what is a scanner and how does it relate to this assignment?

Homework Equations

The Attempt at a Solution


Screenshot (32).png
[/B]
 
Last edited:
Physics news on Phys.org
What would you guess that a "file scanner" might be?
 
@SuperSusanoo I see you have been on the forum since I posted my question. Have you lost interest and are abandoning this thread?
 
phinds said:
@SuperSusanoo I see you have been on the forum since I posted my question. Have you lost interest and are abandoning this thread?
Yeah, looks like they have more fundamental problems..

https://www.physicsforums.com/threads/what-should-i-do.890646/

Thread is locked until @SuperSusanoo can send me a message showing some effort on this problem. The scanner part of a compiler is pretty straightforward if you read the textbook or other study materials...
 
Back
Top