Hmm, that's odd. The bovine Emacs Lisp and scheme parser also leaves
that value as nil. Very curious.
>>> Johann "Myrkraverk" Oskarsson <myrkraverk@...> seems to think that:
>Hi,
>
>I fiddled with semantic-expand-nonterminal function and finally got
>this:
>
>((("text")
> myrk-asm-directive nil nil
> [3 8]))
Your expand function may want to strip the cons cell off of "text" so
it looks more like this:
(("text"
myrk-asm-directive nil nil
[3 8]))
You can probably solve this in your grammar like this:
(TAG (car $1) 'blah )
If the original problem's solution ever appears, I'd be curious to
know the solution.
Thanks, and good luck.
Eric
>I first used the default nil*, then nothing, but since this is working
>now, I'll continue. Perhaps this was some sort of memory foobar?
>
>* from skeleton
>
>Thanks for the help,
>
>Johann
>
>Eric M. Ludlam writes:
> > Hi,
> >
> > Do you have a semantic-tag-expand-function? This function is useful
> > when you have compound statements that should be split and can do all
> > sorts of other things as well.
> >
> > You may want to eval the source to semantic--tag-expand and get a
> > new stack trace so we can better debug the problem. I'm not sure why
> > it would attempt to evaluate the function "." from your tag.
> >
> > Thanks
> > Eric
> >
> > >>> myrkraverk@... seems to think that:
> > >Hi,
> > >
> > >I was yet again fiddling with bovine rules, and am getting tired of
> > >this error:
> > >
> > >Debugger entered: (("." "text" 3 8))
> > > semantic--tag-expand(("." "text" 3 8))
> > > semantic-repeat-parse-whole-stream(((punctuation 3 . 4)
> > > (TEXT 4 . 8)) nil nil)
> > >
> > >When I tried to M-x semantic-debug it I just got the message that my
> > >major mode does not support debugging ;(
> > >
> > >How do I support that?
> > >
> > >If it helps, here are the immediate rules:
> > >
> > >%token TEXT "text"
> > >
> > >starting_rule : text_directive
> > > ;
> > >
> > >text_directive: PERIOD TEXT
> > > (TAG $2 'myrk-asm-directive)
> > > ;
> > >
> > >And the file includes nothing but:
> > >
> > > .text
> > >
> > >
> > >What do I do now?
> > >
> >
> > --
> > Eric Ludlam: zappo@..., eric@...
> > Home: http://www.ludlam.net Siege: http://www.siege-engine.com
> > Emacs: http://cedet.sourceforge.net GNU: http://www.gnu.org
> >
> >
> > -------------------------------------------------------
> > The SF.Net email is sponsored by EclipseCon 2004
> > Premiere Conference on Open Tools Development and Integration
> > See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
> > http://www.eclipsecon.org/osdn
> > _______________________________________________
> > cedet-semantic mailing list
> > cedet-semantic@...
> > https://lists.sourceforge.net/lists/listinfo/cedet-semantic
>
|