Re: [CEDET-devel] Semantic enters debug in scheme files
Brought to you by:
zappo
From: Eric L. <er...@si...> - 2020-03-28 18:58:37
|
Sorry I missed your question earlier. It didn't show up in my new email list the way I would usually expect. The parser (.by file) is used only during build time. If you are using the scheme parser that is part of Emacs, then you would edit it and rebuild emacs. You may need to just run the Makefile in admin/grammars. I'm not sure, I'm not a core Emacs developer. What I do remember is that the grammar is pretty simple, and got me through some simple scheme development several years ago. As I look at the grammar, it may be relatively easy to add . as punctuation, and then tweak 'name-arg-expand' to have a couple other match options to get the match you need. Good Luck Eric On 3/11/20 9:45 PM, Vladimir Nikishkin wrote: > I am not sure if this a parser problem or a grammar problem. > > I found the scheme.by grammar file in the source tree, but not in the > working Emacs distribution. Is it only used at build time? Can I > regenerate the parser/lexer in a working Emacs without a full rebuild? > > ср, 11 мар. 2020 г. в 22:40, Vladimir Nikishkin <loc...@gm...>: >> >> Hello >> >> I have a very simple example file: >> >> example.scm: >> (define (list . args) >> args) >> >> Note that this function accepts any number of arguments, therefore its >> prototype is a dotted list. (list DOT args) >> Semantic throws an exception when encountering such a pattern: >> >> Debugger entered: ((2 31)) >> semantic--tag-expand((2 31)) >> semantic-repeat-parse-whole-stream(((semantic-list 2 . 31)) nil nil) >> semantic-parse-region-default(1 33 nil nil nil) >> semantic-parse-region(1 33) >> semantic-fetch-tags() >> semantic-idle-scheduler-refresh-tags() >> semantic-idle-work-for-one-buffer(#<buffer semantic-scheme-test.scm>) >> semantic-idle-work-core-handler() >> semantic-idle-scheduler-work-function() >> apply(semantic-idle-scheduler-work-function nil) >> timer-event-handler([t 0 60 0 t >> semantic-idle-scheduler-work-function nil idle 0]) >> >> I'm not qualified enough to debug this. Any suggestions? >> >> -- >> Yours sincerely, Vladimir Nikishkin > > > |