5 ms·
Now imagine having that as: (documentclass article) (usepackage amsmath) (begin document) ;; [...] read syntax for displayed math [(= M (bma
by kazinator 5y ago
Now imagine having that as:
(documentclass article)
(usepackage amsmath)
(begin document)
;; [...] read syntax for displayed math
[(= M (bmat (1 2 3 4 5) ;; case-sensitive treatment: M
(3 4 5 6 7))]
(end document)
- formerly_proven 5y agoShouldn't the structure of the expression tree correspond to the structure of the document macros? i.e. (begin document ...)
- kazinator 5y agoMaybe, maybe not. Lisp files can have top-level structure (relationship between top-level forms). Like defining a class here, function there. This is the topic of a StackOverflow question: https://stackoverflow.com/questions/25720046/why-is-a-lisp-file-not-a-list-of-statements https://stackoverflow.com/questions/25720046/why-is-a-lisp-f... One advantage would be that the stuff between (begin document) and (end document) consists of multiple forms which are separately read, expanded and processed, which can be quite important in some situations. Also there is the possibility that some form in the document could load another file. (begin document) (load "boilerplate") ...
- johan_felisaz 5y agoSeeing this really makes me want to do a LateX code generator in Lisp