OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 11:07 am

All times are UTC - 6 hours




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 46 posts ]  Go to page Previous  1, 2, 3, 4
Author Message
 Post subject: Re: Public Domain C/C++ Compiler
PostPosted: Sun Jan 14, 2018 7:36 pm 
Offline
Member
Member

Joined: Mon Jul 25, 2016 6:54 pm
Posts: 223
Location: Adelaide, Australia
~ wrote:
What I need to do next is writing a function that lets me see whether the first non-blank character in the current line is '#', and if so, see if it's an include directive, and then see if the file is enclosed in <> or "" to search for the included file in the corresponding compiler "include" or current source directories.

Do you plan on implementing the entire C preprocessor like this, or is this only for includes? Either way, I would seriously second (third, forth, ...) the suggestion to implement a general purpose tokenizer, and then apply logic like this to streams of tokens instead of raw text.
~ wrote:
@Schol-R-LEA, you would probably thrive with cpudev.org if you dedicate this year entirely to a key topic on it, to be implemented as a practical thing to explain and use.

glauxosdever made cpudev.org, not Schol-R-LEA, glauxosdever said that Schol-R-LEA wrote a lot for compilerdev.org, not cpudev.org. You really need to read posts, like, really. Please read and understand the posts. This isn't a blog, hearing what others are saying is an important part of using a forum.
Also you're basically telling Schol-R-LEA that he should write a tutorial to teach you personally how to make a ROM dumper for an Atari 2600. Why would he want to do that, why would he dedicate one of the 60 or so years of his adult life helping you make images of programs for a 40 year old PC?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 46 posts ]  Go to page Previous  1, 2, 3, 4

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 22 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group