2 ms·
As for symbol tables being hard to do, notice that C does not allow forward references. Supporting forward references while relying on the symbol table to drive
by WalterBright 5y ago
As for symbol tables being hard to do, notice that C does not allow forward references. Supporting forward references while relying on the symbol table to drive the parse winds up with unresolvable problems.
- xscott 5y agoI'm not sure I understand your point. I don't think we're disagreeing about anything. C needs forward declarations for some things, and it needs a symbol table to resolve some parts of the grammar. All I was saying was that I think you could resolve both of them with minor changes. (I see that D has a "cast" keyword, and that's obviously one way to do it.)