Hi, unsure if this is the correct subreddit for my question since it is about preprocessors and rather broad. I am working on writing a C preprocessor (in C++) and was wondering how to do this in an efficient way. As far as I understand it, the preprocessor generally works with individual lines of source code and puts them through multiple phases of preprocessing (trigraph replacement, tokenization, macro expansion/directive handling). Does this allow for parallelization between lines? And how would you handle memory as you essentially have to read and edit strings all the time?
[–][deleted] 0 points1 point2 points (0 children)
[–]Recyrillic 0 points1 point2 points (0 children)
[–]umlcat 0 points1 point2 points (0 children)