4 ms·
Absolutely. Basically any Wirth-based language is designed so it is possible to compile each unit in a single forward pass. With those languages he did that has
by vidarh 10y ago
Absolutely. Basically any Wirth-based language is designed so it is possible to compile each unit in a single forward pass. With those languages he did that has proper module support, and with most non-Wirth extensions to languages like Pascal, they tend to use very well constrained formats to cleanly delineate the type information and function signatures that is exported to retain that.
Wirth-style compilers also often don't even build an AST. Wirths own compilers called functions in the code generator module directly from the parser. Which again was something he could easily do because the languages were designed for single pass compilation.