Re: Plans to integrate a wisent grammar in php-mode
Eric Ludlam <[email protected]> Sat, 18 Apr 2015 09:24:01 -0400
| Newsgroups | gmane.emacs.cedet |
|---|---|
| Message-ID | <[email protected]> |
On 04/15/2015 08:05 AM, Steven Rémot wrote: > Thank you for the proposition, if ever there is a problem with this one > day I will come back to you. > > But actually this is not what I meant at all in my last mail :-) . My > message lacked of explanations so this is my fault. What I meant is that > the long term goal implies having a simple grammar in the php-mode > repository, which just handles just a bit more than tagging (no local > analysis). Then, minor modes would provide more complete grammars to > perform, for example, type inference. The two or more grammars I was > talking about were these ones. Thanks for the clarification Steven, Each grammar in wisent can have more than one %start token. What that means is you can have one %start goal for your basic grammar, and if you want to do more detailed analysis, you can then have %start block_statement or whatever for parsing inner content. That allows you to share large parts of your grammar between different behaviors you might be interested in. I am less certain about multiple grammars for one buffer. There are a fair number of buffer local variables controlling the parsing, so we'd have to refactor some if we want to do that. Eric ------------------------------------------------------------------------------ BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT Develop your own process in accordance with the BPMN 2 standard Learn Process modeling best practices with Bonita BPM through live exercises http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_ source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF _______________________________________________ Cedet-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/cedet-devel