Here is a stacktrace of the error if it may help:
Debugger entered--Lisp error: (error "Bad input grammar")
signal(error ("Bad input grammar"))
error("Bad input grammar")
(or (and (consp grammar) (> (length grammar) 2)) (error "Bad input grammar"))
wisent-parse-grammar((nil nil) nil)
wisent-compile-grammar((nil nil) nil)
(progn (eval-when-compile (require (quote semantic/wisent/comp)))
(wisent-compile-grammar (quote (nil nil)) (quote nil)))
(defconst calc-wy--parse-table (progn (eval-when-compile (require
(quote semantic/wisent/comp))) (wisent-compile-grammar (quote (nil
nil)) (quote nil))) "Parser table.")
eval-region(1119 2492) ; Reading at buffer position 1119
call-interactively(semantic-grammar-create-package nil nil)
On Tue, Sep 11, 2012 at 1:57 PM, Eric M. Ludlam <ericludlam@...> wrote:
> This is a puzzle to me. You may be right. When using CEDET from bzr, the
> load command (cedet-devel-load.el) needs to be first. Your installed Emacs
> might have something in it's system level startup files that prevents it
> from fully loading. The loader has some simple checks, but it doesn't
> validate everything that might get loaded.
> I'm not sure what else it might be.
> On 09/11/2012 04:34 AM, kototama kototama wrote:
>> I'm using emacs 24.1.
>> Is there anything to do in the cedet source code before using it
>> within emacs? I tried "make" but I still get the "bad input grammar"
>> (also after updating the repository).
>> May I have a conflict between the emacs semantic version and the
>> version I installed separately ?
>> On Tue, Sep 11, 2012 at 3:29 AM, Eric M. Ludlam<ericludlam@...>
>>> On 09/06/2012 08:37 AM, kototama kototama wrote:
>>>> I'm new to cedet and I'm trying to evaluate wisent.
>>>> I have the latest repository version of cedet, obtained with this
>>>> mirror https://github.com/emacsmirror/cedet
>>>> and I load it with this line in .emacs:
>>>> (load "~/.emacs.d/emacs-modes/cedet/cedet-devel-load.el")
>>>> Now when I open the calc.wy file, toggle wisent-grammar-mode and type
>>>> C-c C-c or M-x semantic-grammar-create-package, I get the following
>>>> wisent-parse-grammar: Bad input grammar
>>>> Any help would be highly appreciate.
>>> Hi Kototama,
>>> The version of calc from bzr (or from github I presume) compiles fine
>>> me, and also compiled when using C-c C-c for me. Perhaps you just need
>>> refresh the file from git or bzr? Did some other random char sneak in
>>> you were moving the cursor around?
>> Live Security Virtual Conference
>> Exclusive live event will cover all the ways today's security and
>> threat landscape has changed and how IT managers can respond. Discussions
>> will include endpoint security, mobile security and the latest in malware
>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> cedet-semantic mailing list