Re: How to reload grammar file
Eric Ludlam <[email protected]> Sun, 22 Mar 2015 15:11:12 -0400
| Newsgroups | gmane.emacs.cedet |
|---|---|
| Message-ID | <[email protected]> |
On 03/10/2015 06:55 AM, Tu Do wrote:
> Please add this to c.by <http://c.by> to <semantic_list>:
>
> %token <semantic-list> BRACES "{}"
>
> with brace pair added, Semantic will be able to parse semantic units
> inside a namespace. Currently, Semantic is unable to do that because its
> rule define a semantic-unit to be parsed, but the braces are not
> included as part of semantic-list. Here is an example to reproduce:
>
> namespace test_ns {
> class test_ns_class {
> private:
> int a;
> public:
> int func(int a, int b);
> };
> };
>
> If you try to fetch tags, there's nothing included as members of test_ns
> tag. With the above addition, it can parse properly.
I tried the above code snippet with no changes to c.by, and it parsed
the contents of the namespace fine. I also checked incremental parsing.
Could you elaborate on what the problem is, perhaps I misinterpreted
something.
Eric
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/