2 ms·
It's simple code reuse... you know that compilers are made of many modules and have stages right? Why reinvent writing a code -> lexer-> ast parser for your i
by woolvalley 8y ago
It's simple code reuse... you know that compilers are made of many modules and have stages right? Why reinvent writing a code -> lexer-> ast parser for your indexer when you already have a well tested and fast one in llvm?
Did you know for example, that when you build your app in xcode that it uses that partial build product to also feed the indexer, so you don't have to scan the same code twice?
https://www.tutorialspoint.com/compiler_design/compiler_design_phases_of_compiler.htm https://www.tutorialspoint.com/compiler_design/compiler_desi...