Re: [cedet-semantic] Multi-character operators
Brought to you by:
zappo
|
From: Eric M. L. <er...@si...> - 2007-03-23 11:37:17
|
Hi,
Please start with one of the CEDET releases or, preferably, a copy
of CEDET CVS. Semantic 2.0 is a piece of the overall tool now, and
includes the new wisent parser. If your language is complex, you will
want to use a wisent based parser, which does handle multi-symbol
things. The manual for wisent is also very nice.
Eric
>>> "Filip Miletic" <fi...@gm...> seems to think that:
>Greetings.
>
>I am just beginning to fiddle around with semantic, for the purpose of
>writing a language translator. I have not found out how to define
>multi-character operators, such as ++, += etc. Trying to pick that up from
>the java.bnf file seems to reveal there is no support for multi-character
>operators on the token level.
>
>Also the regexp for postfix operators in the bnf definition was given as
>"[-+][-+]", which would mean "-+" and "+-" are also accepted as postfix
>operators (line 628 of java.bnf).
>
>What is the right way to define multi-character operator tokens?
>
>Thanks,
>f
[ ... ]
--
Eric Ludlam: za...@gn..., er...@si...
Home: http://www.ludlam.net Siege: www.siege-engine.com
Emacs: http://cedet.sourceforge.net GNU: www.gnu.org
|