Hi Ramon, Okay, I've printed off that Birmingham tutorial too. I always wondered what CLS stood for! No, I only need to do COS for methods, and perhaps some day BASIC. It would also be useful to be able to parse and syntax-check a single expression, and of course a SQL statement. I guess these subsets will drop like ripe fruit out of any working grammar.
Once you've parsed the text it's not that hard to highlight the colour in an editor - I think it's the SelStart, SelLength and SelColor properties of the RichText box in .NET. As you say, doing a proper parsing and analysis of the text also allows you to do things like list dependencies, which Studio can't do. The tricky thing is going back and redoing the analysis when someone presses a key. I shall need some multithreading I think, but that's way off in the future. Thanks for your offer of help. I'll be in touch if I get confused with ANTLR. Regards Jay Ayliff Stalis Ltd
