News for hackers. Stuff that matters.
Re:Automatic compilation of partially available C source code by the8472 on Friday April 21, 2017 @11:29AM (#14166403)
Aiui Eclipse JDT (and probably other IDEs too) do something similar. It takes code that currently is not valid and tries to massage the AST until it becomes valid so that it can perform type-inference and use the type information to offer valid autocomplete suggestions even at the currently invalid location.
Re:Automatic compilation of partially available C source code by unusualcool on Monday April 24, 2017 @09:05AM (#14183953)
Yes, a few IDEs perform some disambiguation during parse. But notice that the ability to deal with ambiguities and to come up with a proper AST is just step 0 of the pipeline. The challenging part is type inference - as far as I know there are no other tools that can reconstruct sources as we do.