Re: [cedet-semantic] indentation engine for Emacs Ada mode; help getting started
Brought to you by:
zappo
From: Stephen L. <ste...@st...> - 2012-10-08 23:20:00
|
David Engster <de...@ra...> writes: > Stephen Leake writes: >> David Engster <de...@ra...> writes: > >>> Also, IMO there are too many indentation issues that are more a matter >>> of taste; just look at how many comment-styles the cc-mode indentation >>> engine supports. >> >> Yes. That's not a problem in Ada; the Ada community is pretty uniform, >> so a _small_ choice of styles is adequate. GPS (the AdaCore IDE) only >> has about 4 settings for indentation! > > That must be a nice community to be in. ;-) Yes, it is. It's also a great language to write code in. In only Google appreciated that, writing code for Android would be so much easier :(. >> Back to semantic; I have a very small grammar written, compiled, and >> running. Here's the entire rules part: > > Could you please send the entire .wy file? That will it make it much > easier for me to test. Attached. > I'm guessing you still need to add some boilerplate, for example you > have to tell Semantic what kind of Lexer it should use for Ada > buffers. There is an Analyzers section in the -wy.el file output by semantic-grammar-batch-build-packages, and I see appropriate tokens when I step thru bovinate. > It's been a while since I've written a language mode myself, so I'm a > bit rusty in that area. Have a look at the small examples like > wisent-calc.el. Doesn't look significantly different to me, but I'm clearly missing something. I'll try running that with bovinate, as well. -- -- Stephe |