>>> Thomas Woelfle <Thomas.Woelfle@...> seems to think that:
>Hi *,
>
>I'd like to write a emacs major-mode for an own little language.
>How can I use semantic to parse a file and how to use it to
>do syntax-highlighting of the file?
[ ... ]
Hi,
The semantic info manual contains instructions for building a
language definition file. There are also some examples, and a
skeleton.bnf file.
After you have created a parser several features are available, but
syntax highlighting is not one of them. While that is a long term
goal, there is no active plan for it.
Depending on the complexity of you language, you may choose to
instead use the experimental wisest parser which will be an important
part of semantic 2.0. The current LL parser has limitations which
prevent some languages from being parsed correctly, particularly if
function or method bodies are not wrapped in some form of
parenthetical characters.
Good Luck
Eric
--
Eric Ludlam: zappo@..., eric@...
Home: http://www.ultranet.com/~zappo Siege: http://www.siege-engine.com
Emacs: http://cedet.sourceforge.net GNU: http://www.gnu.org
|