You would probably have better luck using the latest cedet beta. In
that version, the original .by file (replacement of the .bnf) is
stored so that the debugger can find it without having to do the more
complex setup described in 1.4.
In 1.4, your process sounds correct. The end of a debug session
concludes by showing the BOVINATE buffer. If the parser thinks there
is nothing to parse, then it would indeed skip debugging, and jump
right to that buffer.
This could happen if there is no parse table, or if the buffer
doesn't lex properly for some reason. You can do this:
M-: (semantic-lex (point-min) (point-max)) RET
to see if that is doing ok. (ie, does it think there is one big
comment?)
C-u M-x bovinate RET
will also show if the basics of parsing is working.
If that is the case and the debug is still not working, I have no
idea what else it might be.
Eric
>>> WZocher@... (Wolfgang Zocher) seems to think that:
>*,
>
>when I follow the instructions for debugging (Chapter 8 Debugging) language
>files using BNF with "bovinate-debug" I mostly have no success.
>
>Here is the scenario: I have a simple c-file hello.c, the c.bnf
>grammar-description as source and the corresponing lisp-table in semantic-c.el
>all in my current working directory. semantic is installed properly (I hope)
>with
>
> (setq semantic-load-turn-everything-on t)
> (require 'semantic-load)
>
>and semantic-load leaving untouched, i.e. the distributed version.
>
>Now I open two files; one buffer contains hello.c, another buffer
>semantic-c.el, I point to the table-structure in semantic-c.el and execute
> semantic-bovinate-debug-set-table. Then I set the pointer to the beginning of
>hello.c and execute bovinate-debug: the buffer containing semantic-c.el
>disappears and is replaced by *BOVINATE* which only contains one line with
>"nil". But sometimes, after endless trials, I get the layout described in the
>manual and the point now sits on the rule in the table corresponding to the
>token found in the c-source file and I can get through the source hitting the
>space-key ...
>
>Whats wrong with my setup?
>What can I do to debug against the c.bnf file?
>
>Thanks in advance
>Wolfgang
>
--
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
|