谈到Scheme 的独特之处,除了它那极简语法的 s-expression 外,就是与众不同但又威力强大的宏,或者说是语法拓展(syntactic-extension)了。本文除了作为我对 syntax-rules 的学习总结之外,其实更多的是对宏这一机制的理解与思考。 我目前学过 C、scheme、python,对 perl 和javascrpit 有所了解,以我浅薄的编程学习...
scheme目前其实有至少三套宏系统: 完全hygiene的syntax-rules(define-syntax) 可以hygiene也可以dirty的syntax-case(define-syntax) 逐步被淘汰的lisp传统宏系统define-macro(有些实现里叫defmacro) syntax-rules的能力是受限的,不能引入新的syntax-object,只能写一些简单的宏.但是用syntax-rules写出来的宏肯定比用syntax...
syntax-case上的PLT Scheme文档,以获取更多示例,并了解实现中的变化。
(put 'eval-when 'scheme-indent-function 1))) (put 'eval-when 'scheme-indent-function 1) ;; Same thing here. ;; https://debbugs.gnu.org/cgi/bugreport.cgi?bug=40869 (put 'syntax-rules 'scheme-indent-function 'defun))) (texinfo-mode (fill-column . 66)))56 changes...
aUBM has been listed 82nd out of 2103 participants in the UK's CRC Energy Efficiency Scheme Performance League Table, placing UBM amongst the top 4% of energy efficient companies in the UK. For more information see the Green Focus pages on the wiki. UBM是被列出的第82从2103个参加者当中在...
This paper proposed a novel scheme for extracting character relation from unstructured text based on dependency grammar rules. First of all, we took the Three Kingdoms characters as our research object, then selected articles containing target relationships and thus constructed a corpus consisting of ...