[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.technology.dltk] Semantic checking - via validators?
|
Thanks to ANTLR and DLTK, I now have an advanced editor which can
immediately flag syntactic problems in our language source files.
My question is if/when/how should I find/flag semantic errors in the source
file?
1. Is there any part of DLTK framework which could/should be used to
invoke/perform semantic checks? I assume the answer to this is no. I know
you support external validators - but we'd like the semantic checking to be
performed implicitly.
2. When should semantic checks be performed - whenever the parser is
invoked?
3. How should errors be reported - using the parser's error reporter?
Also, how can we determine the line number for populating IProblem
in the file if that information is:
a) not available in DLTKToken
b) not kept in ASTNode
Thanks,
Chuck