Probably a lot of programmer have seen "hackers and painters," and the author used a whole chapter to discuss the power of Lisp. I would naturally tickle my hands. A few months ago, gongchenglvede the python in a few days, using PY to rewrite the previously developed class library, so that you can quickly familiarize yourself with the grammar and develop a sense of language. Beaming me, also trying to use the same strategy for
After reading hacker and painter, I always wanted to know the language of Lisp. Some time ago I bought practical Common Lisp translated by Honda Chun (practical Common Lisp programming ), I just arrived in February. Let's take a look.
Build the lisp environment: Install and run the
Since Professor Qiu zongyan translated the second edition of structure and intepretation of computer programs, more and more Chinese developers are paying attention to this mit computer programming introductory textbook. At the same time, it is also noted that it introduces the functional programming (functional programming) and the scheme language used in the example.
Time was reversed to 30 years ago. In 1975, Bill Gates and Paul Allen wrote the legendary basic version, which they later sold t
I used to read hacker and painter in the past. the praise and respect for the LISP Language aroused my strong impulse to learn the lisp language, but soon I found that there were very few application scenarios in practical work, I finally gave up with merit. It was not until last week that I had read the cathedral and market at home. This book again suggested learning l
Label: Use SP file on problem ad work Python Learning
I want to talk about the development environment of Common Lisp. It is vital to learn a new language and how to build a development environment in the simplest way, it should not allow you to spend too much energy on other aspects, but focus only on learning the language itself.
In fact, what I first tried was not commonlisp but clojure, but setting up a development environment made me a little
Http://www.adaiw.com /? P = 627
Today, I am in a high mood, because I decided to end the Common Lisp in one of my learning plans. Now I can go to the next learning plan! I have been studying lisp for nearly a year since I read the book "hacker and painter", and I have been very busy working in this year, learning "Practical Common Lisp". most of the content is re
The Lisp language is the second oldest high-level programming language. Many hackers and developers of Lisp praise, Paul Graham even said "the programming language is now developing, but just catching up with the 1958 Lisp language level". However, such advanced language in the current programming language has never ranked to the top 20, I heard that it is a lot
definition: Given a language, defines a representation of his grammar, and defines an interpreter that uses the representation to interpret a sentence in a language.
Type: class behavior pattern
class Diagram:
The structure abstraction interpreter of the interpreter pattern : declares an abstract interface (or abstract class) to be implemented for all concrete
PS One sentence: Eventually choose Csdn to organize the publication of the knowledge points of these years, the article parallel migration to CSDN. Because CSDN also support markdown grammar, Ah!"Craftsman Joshui Http://blog.csdn.net/yanbober" read the previous "pattern of design (behavioral) visitor pattern (Visitor pattern)" Http://blog.csdn.net/yanbober/article /details/45536787OverviewThe interpreter pattern is the behavior pattern of the class. G
Mode motiveIf a particular type of problem occurs in the system at a very high frequency, consider describing an instance of the problem as a sentence in a language, so you can build an interpreter that solves these problems by interpreting these sentences.The interpreter pattern describes how to make up a simple language interpreter, mainly used in compilers dev
Design PHP
Interpreter mode definition(It is rarely encountered in real projects, so the theory goes first ...)
The interpreter mode is a solution for parsing according to the prescribed syntax, which is rarely used in current projects. It is defined as a representation of the method that defines a language, define an interpreter that uses this representation to
In Gof's design model: The basics of reusable object-oriented software, the interpreter pattern is said: Given a language, define a representation of its grammar, and define an interpreter that uses that representation to interpret the sentences in the language. If a particular type of problem occurs at a sufficiently high frequency, it might be worthwhile to describe each instance of the problem as a sente
1. Start the python Interpreter
2. Two modes of the python Interpreter
3. handle errors
4. Set the python interpreter to startCode
5. Execute the python Module
5.1 Python file Annotation
5.2 how to write Chinese comments
5.3 how to execute the. py file
In the previous article, we installed python, installed the pydev plug-in under ec
Interpreter mode, that is, Interpreter mode.The interpreter mode is a behavior mode. The Gof defines a language, a syntax expression, and an interpreter. This interpreter uses this expression to describe the language.Explain sentences in a language.What needs to be solved in
[Design mode-behavior type] Interpreter mode (Interpreter)One sentence
It seems to be a grammar used to explain a language. (Similar to different interpreter sub-classes that explain different characters)
Similar to the interpreter of the compiler, the actual situation may be less used.
Summary
Analysis
Main Features:Commonlisp:lisp, a large language of industrial intensity. Have the highest theoretical expression, very complex, learning is very difficult. Like the people hold to the sky, think it is the end of all languages, do not like the people nausea and death, feel all kinds of confusion and redundancy, missing beauty. (Industrialized languages)Scheme: A static scope and mandatory strict tail recursive implementation features, the idea is that programming language development should not b
From the language of Lisp-Chen GuangxiFirst, assign a value(1) LetLisp uses let to complete the definition of a local variable. The form is: (Let (var1 exp1) (var2 exp2) ... (Varn expn))ExpsWhere the operator let indicates that a local variable will be defined. (Vari expi) vari the variable name, the initial value of which is the value of the expression Expi. The exps part of the Let statement is the expression collection that completes the required p
Interpreter mode
The pattern we share with you today is the interpreter pattern.
First, explain what kind of problem the interpreter model is suitable to solve.
In fact, the problem with the interpreter pattern is that if a particular type of problem occurs on a high enough frequency, it may be worthwhile to express
In a word, nothing is weaker than Excel computing, and of course graphics is not. For programmers, using the mouse to drag or write the calculation formula with Lisp which is more in line with the habit of thinking, I think the latter. I will only introduce the Lisp calculation formula, if you focus on a simple Calc calculation formula, you can refer to the official document.How to refer to other fields in
1, usually when we use Emacs to learn elisp, first open a test file such as Lisp.el, then Emacs will automatically switch to Emacs-lisp mode as follows:Enter the various grammars we want to learn in this lisp.el.2. The difference between a list and a functionThe Official Handbook contains the following:The single apostrophe, ', which I put in front of some of the example lists in preceding sections is called a quote:When it precedes a list, it tells
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.