Re[1]: [CEDET-devel] summary of semantic
Brought to you by:
zappo
From: Eric M. L. <er...@si...> - 2002-06-28 12:42:39
|
That is a great summary. I have a couple additions/questions below. You can ignore them if they are "too much detail" for the audience you are targeting. >>> "Richard Y. Kim" <ry...@ds...> seems to think that: >Eric and David, > >The following summarizes my understanding of the benefits of >semantic. Please correct me if I'm mistaken. If I'm on the right >track, I would use something like this in an introductory chapter >of the semantic manual to give the reader an overview of semantic. > >------------------------------------------------------------------- > >The following diagram illustrates the benefits of using semantic: > >* Semantic parses a language (for which a parser is available) and > produces a common parse tree regardless of the original source > language. I tend to think of the "parse tree" as "tags", though "parse tree" sounds cooler and more technical. >* Semantic provides a common API based on which applications can be > written in a language independent way. This means that the > application will work for ALL languages for which a semantic parser > can be witten. > >* Semantic provids good set of tools and examples for the appplication > writers. > >* Semantic also provies extensive tools for the parser developers as well. > For many languages, those that can be described using a context-free > grammer, all that one needs to do is write a grammar file along with > appropriate semantic rules. Didn't you take python's YACC file and port it? This would be useful to mention here. With wisent, you can aso: * Create language translations (see calc-wy.wy) And possibly too much detail: * semantic provides an API for parsing `local context' (see semantic-ctxt.el) for intellisense and completion. Thanks! Eric -- Eric Ludlam: za...@gn..., er...@si... Home: www.ultranet.com/~zappo Siege: www.siege-engine.com Emacs: http://cedet.sourceforge.net GNU: www.gnu.org |