1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-13 09:32:47 +00:00
emacs/admin/grammars
Stefan Monnier 468bb5ab7f * lisp/cedet/semantic/wisent: Use lexical-binding
* lisp/cedet/semantic/wisent/comp.el: lexical-binding.
(wisent-defcontext): Make sure the vars are also dynbound in the files
that `require` us.
(wisent-state-actions, wisent-automaton-lisp-form): Use `obarray-make`.
(wisent--compile-grammar): Rename from `wisent-compile-grammar`.
(wisent-compile-grammar): Redefine as an obsolete function.
(wisent-automaton-lisp-form): Avoid variable `state`.

* lisp/cedet/semantic/grammar.el: Use lexical-binding.
(semantic-grammar-require-form): New var.
(semantic-grammar-header): Use it to provide new element `require-form`.
(semantic-grammar-header-template): Use it.

* lisp/cedet/semantic/wisent.el (wisent-compiled-grammar): New macro.

* lisp/cedet/semantic/wisent/grammar.el (wisent-grammar-parsetable-builder):
Use it in the generated code instead of the `wisent-compile-grammar` function.
(wisent-grammar-mode): Set `semantic-grammar-require-form` so
the generated ELisp files require `semantic/wisent` rather than
`semantic/bovine`.

* lisp/cedet/semantic/wisent/wisent.el: Use lexical-binding.
* lisp/cedet/semantic/wisent/java-tags.el: Use lexical-binding.
* lisp/cedet/semantic/wisent/python.el: Use lexical-binding.
* lisp/cedet/semantic/wisent/javascript.el: Use lexical-binding.
(semantic-ctxt-current-symbol): Remove unused var `symlist`.

* admin/grammars/python.wy (wisent-python-EXPANDING-block):
Declare dynbound var.

* lisp/cedet/semantic/grammar-wy.el: Regenerate.
2021-03-07 01:58:16 -05:00
..
c.by * * lisp/cedet/semantic: Use lexical-binding in the generated grammars 2021-03-05 23:33:21 -05:00
grammar.wy * lisp/cedet/semantic/wisent: Use lexical-binding 2021-03-07 01:58:16 -05:00
java-tags.wy Update copyright year to 2021 2021-01-01 01:13:56 -08:00
js.wy Update copyright year to 2021 2021-01-01 01:13:56 -08:00
make.by Update copyright year to 2021 2021-01-01 01:13:56 -08:00
Makefile.in Simplify silent-rules build machinery 2021-03-06 16:28:46 -08:00
python.wy * lisp/cedet/semantic/wisent: Use lexical-binding 2021-03-07 01:58:16 -05:00
scheme.by Update copyright year to 2021 2021-01-01 01:13:56 -08:00
srecode-template.wy Update copyright year to 2021 2021-01-01 01:13:56 -08:00