In general, I want to comment on balanced bracket expressions.
1 answer
(в lisp комментарии начинаются с ; И это не будет прочитано транслятором. (а вот это (будет))) ;;; комментарий к файлу ;; комментарий к функции ; комментарий к строчке
As for balanced expressions, the following syntax works for Scheme:
#;(здесь код парсится но (не выполняется))
For Common Lisp, I don’t know if this syntax works, I don’t have a compiler at hand. Most likely no.
UPD : In CL, you can do this:
(defmacro custom-comment (&rest rest) nil) (custom-comment 1 "1" 2 3 (let ()) x) ; ok
Try one of the ways that might work (No Emacs Lisp to check)
- @Heshkod, is it possible to explicitly specify the type of code to highlight? Or indicate not to highlight? And then everything is incorrectly allocated. - Vladimir Gordeev
- It's clear. I want to defun comment so that you can draw: (comment anything, well, maybe the brackets and quotes are balanced) - avp
- Well, then you just need to define a macro, which does nothing with the arguments and that's it =) (well, maybe NIL returns order). <pre> (defmacro custom-comment (& rest) nil) (custom-comment 1 "1" 2 3 (let ()) x); ok </ pre> but this type of code does not work, because quasiquotation is revealed at the reading stage: <pre> (custom-comment "sdfsdf" 'x moped `x, x) </ pre> - Vladimir Gordeev
- damn, I'm all about Scheme and CL, and then Emacs. I did not see. Then the fig knows whether the macro will work or not. - Vladimir Gordeev
- Thank you so much !!! The macro custtom-comment works, exactly the macro, and I tried to do defun - avp
|