|Parsing circular includes... firstname.lastname@example.org (Orlando Llanes) (2002-09-14)|
|Re: Parsing circular includes... email@example.com (Peter Flass) (2002-09-14)|
|Re: Parsing circular includes... firstname.lastname@example.org (Bob Sheff) (2002-09-14)|
|From:||"Orlando Llanes" <email@example.com>|
|Date:||14 Sep 2002 00:18:28 -0400|
|Organization:||Prodigy Internet http://www.prodigy.com|
|Posted-Date:||14 Sep 2002 00:18:28 EDT|
I'm currently working on an assembler, part of what I need is the
ability to process include files. I understand that I simply save the
current file pointer, read in the include file, and restore the previous
What I'm having trouble with are circular includes. In other words, when
file A includes file B, and file B includes file A.
Am I being a wimp by not allowing circular references?
[It depends. If your assembler can include a file based on an assembly
time condition, recursive includes are just barely useful. If it doesn't,
they're always an infinite loop so the only reasonable action is to
diagnose and give up. -John]
Return to the
Search the comp.compilers archives again.