About AST, we did something at work in dotnet for syntax checking when typing SQL requests in a tool (not only simple statements, some of the developers requests are real monsters, iirc one of the biggest was 42k), and we built the ast on the fly at each typing, it was incredibly fast. I was sceptic at the beginning, but given the power of current cpu, few milliseconds between key strokes is more than enough. Perhaps it could/should be done only on "special" characters like spaces ;[]() -> and so on, or only on a special keymapping (reformating at each keystroke could be very disturbing).


Reply via email to