HackerTrans
トップ新着トレンドコメント過去質問紹介求人

mfichman

no profile record

コメント

mfichman
·2 年前·議論
The difference is that you need to make a complete second iteration (or pass) over the entire list to correctly check all of the callsites after all function type information is collected. The same is not true for symbol table usage in a single-pass C compiler.
mfichman
·2 年前·議論
Usually, the second pass in a compiler does not re-parse source files. Rather, it operates on another data structure, like an AST, intermediate representation, or the list mentioned in the original comment. At least, that’s my understanding of multi-pass compilation.
mfichman
·2 年前·議論
I think that would by definition be a two-pass compiler.
mfichman
·3 年前·議論
…but what have the Romans done for us?
mfichman
·3 年前·議論
I like goqu (https://github.com/doug-martin/goqu), which has support for most SQL dialects. How does this compare?