>>> Nathan Huesken <cedet@...> seems to think that:
>Hi,
>
>I wonder if it is difficult to get haXe support into cedet.
>I read the lang-support-guide.texi, but I do not get smart from it.
>
>I wonder:
>
>Since a compiler exists for haXe, there has to be some sort of grammer
>definition for it?
>
>Could this not be used by semantic?
[ ... ]
Hi,
I'm not sure what haXe is other than what it says on the website,
but there are a couple ways to get Semantic support for it.
You could write a grammar for it with wisent. This would be similar
to working with lex/yacc. This would be like the java parser. It is
fast, does incremental parsing, and has good support. If there is a
haXe yacc file, you can usually convert these to wisent by removing
the C code, and replacing it with Emacs Lisp code.
You could write a regexp parser for it. This would just use Emacs
regular expression matching. It doesn't support incremental parsing,
and can be slower for big files, but fast to get the first
implementation working. This is like the texinfo parser.
You could use the haXe compiler to spit out some sort of definition
list. This would be similar to the ctags parser (in CVS only in
semantic/ctags.) Since haXe seems to be targetable to multiple
languages, it could spit out Emacs Lisp code of various sorts.
I think a real haXe hacker would write a "target" for it to spit out
CTags, GTags, or Semantic tags. That would be pretty cool.
Good Luck
Eric
--
Eric Ludlam: eric@...
Siege: http://www.siege-engine.com Emacs: http://cedet.sourceforge.net
|