1, save all REPL process in Emacs c-x c-w file as SaveThe execution statement is not correctly parsed by (load "Foo.lisp") because only the definition statement can execute correctly (load "Foo.lisp")So the script was written like this, the parse_lisp_code.sh.#!/bin/bashIf [-N "$"]; ThenSed ' s/cl-user>//' | Expand-t 8 | Egrep ' ^ *\ (def|^ {8,} ' >> ' Code_${1} 'Elseecho "Please input Lisp file name"FiRun the script sh parse_lisp_code.sh cd.lispComma
Article title: future generations of the Lisp language, Scheme language in a simple way. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
1. symbol types
The symbolic type, also known as the reference type, is very vague in the summary article, so that many beginners do not understand it. Symbol types are the mos
ProfileIntroduction to BlogIt is my pleasure to see the reading of this blog. This blog will be updated continuously. Thank you for your support. Welcome your attention and leave a message. Blogs have multiple columns, each of which is about Android app Development ,Windows app development , UWP (Universal Windows Platform) Development , SICP Exercise Solutions , and Scheme language learning , algorithm analysis and Leetcode . And recent will join the article will mainly be algorithm and Androi
Recent. Because of Perl and learning functional programming, and then further learning Lisp, it is really a learning to find their own insignificance.Accidentally found a very easy C-language version of the Lisp parser.The code is very short, but very good at the foundation, up posture.Also learned the garbage collection, really harvest a lot!http://piumarta.com/software/lysp/I hope the LAN can access the q
Recently, because of Perl and learning functional programming, and then further learning Lisp, really a learning to find their own insignificance.Inadvertently found a very simple C-language version of the Lisp parser.The code is very short, but it is very good to see the foundation, up posture. Also learned the garbage collection, really harvest a lot!http://piumarta.com/software/lysp/I hope the local area
Happy New Year! This is a collection of key points of AI and deep learning in 2017, and ai in 2017RuO puxia Yi compiled from WILDMLProduced by QbitAI | public account QbitAI
2017 has officially left us.
In the past year, there have been many records worth sorting out. The author of the blog WILDML, Denny Britz, who once worked on Google Brain for a year, combed and summarized the
Six AI elements required for wireless network strategy and ai elements for wireless network strategy
With the development of artificial intelligence (AI), organizations can transform their wireless networks through predictable, reliable, and measurable WiFi.
Today, artificial intelligence is everywhere. It is widely believed that artificial intelligence will bec
language you are familiar with can be an AI development language.
Artificial intelligence programs can be implemented in almost all programming languages. The most common ones are: Lisp, Prolog, C/C ++, and Java recently.
LISP
Advanced languages such as LISP are favored in artificial intelligence, because after years
LAMDBA is actually an anonymous function.The lambda syntax for defining Lisp is very simple, as follows:(Lambda ([parameter]) [Experssion])There are three ways to invoke the lambda syntax, as follows:First type: ((lambda (x) (+ x 1)) 100); Add parameters directly to the backThe second type: (Apply # ' (Lambda (x) (+ x 1)) ' (100)); Use the Apply function to pass in a list table in the last argumentThe third type: (Funcall # ' (Lambda (x) (+ x 1) 100))
(Defun main (rest args)(Defun factorial (n)(if (= n 0)1(* N (Factorial (-N 1)))) )(Loop for I in *args* do (write (factorial (Parse-integer i)))(TERPRI))(write "Hello world!")(quit))(Ext:saveinitmem "Main": QUIET t: Init-function ' main: Executable T: NORC t)Save in file Main.lisp, then Run command$ clisp Main.lispRun Main.exe will error: Libreadline6.dll cannot find.This file is in the Clisp base directory, you need to configure this directory to the environment variable, run again.Compiling
1. Select textOmitted2. move textOmitted3. Copy textOmitted4. Search for text5. Replace textIs the replacement button.6. Set bookmarks in the programVisuallisp allows you to add 32 bookmarks in each editing window. When a new bookmarks are added, the earliest bookmarks are deleted. Bookmarks help you more easily browse the files in the text editing window. Each text editor window maintains its own separate bookmarks. All bookmarks in each window form a bookmarks ring, and the cursor can move for
) (tamara bruce suzanne) (vincent bruce suzanne) (wanda nil nil) (ivan george ellen) (julie george ellen) (marie george ellen) (nigel andre hillary) (frederick nil tamara) (zelda vincent wanda) (joshua ivan wanda) (quentin nil nil) (robert quentin julie) (olivia nigel marie) (peter nigel marie) (erica nil nil) (yvette robert zelda) (diane peter erica)))(defun father (x) (second (assoc x family)))(defun mother (x) (third (assoc x family)))(defu
Just now I saw this, and suddenly I was frightened.
Reply content:A station you say clearly, is common lsip or racket or scheme or ... Nonsense, PHP is the best language can not see the anime otaku originally wanted to complain Acfun, the results see Lisp excitedly to know to learn.
Acfun cleverly dissolved the pressure. It's obvious that this is a joke, and asking the question means you're hooked. Obviously is a station in play terrier. Let your grou
1. Symbols Definition
SymbolsAre used for theirObjectIdentity to name varous entitiesInCommon LISP, Including (but not limited to) Linguistic entities suchAsVariablesAndFunctions.
2. built-in symbol
Intern symbol --Interned SymbolIs uniquely identifiable by itsNameFrom anyPackageIn which it isAccessible.
3. Convert the string to symbol
;;;
; Description: the right side of the code => "..." indicates the output of each line of code.
;;;
(SETF symbo
Lisp is a simple and powerful language with a very simple syntax:(+ 1 2)The above meaning is: + is a method or function, 1, 2 is a parameter, fn=1+2, that is, the sum is evaluated, the result is: 3Double brackets are used to remind the interpreter to start and end.Previously wrote an article in Iteye to briefly explain how to write Lisp's interpreter:http://gyc567.iteye.com/blog/2242960It also draws a sketch to illustrate:Because Lexer ( lexical analy
The main thing is to integrate the previous Lisp program into the current. NET menu to do so.Using Autodesk.AutoCAD.Windows;Using Autodesk.AutoCAD.Runtime;Using System.Windows.Forms;Using Autodesk.AutoCAD.DatabaseServices;Using Autodesk.AutoCAD.EditorInput;Using Autodesk.AutoCAD.ApplicationServices;Using System;Using System.Collections;Using app = Autodesk.AutoCAD.ApplicationServices.Application;Namespace test{[Commandmethod ("Test")]public void Test
What is the AI file
The suffix is. ai files are illustrator software (in advertising, printing and packaging used in the software) produced vector map files, and the advantage of vector graphics is how to enlarge the image will not produce massek phenomenon, that is not virtual. Therefore,. ai files do not produce mosaics in the event of an image magnification
Mozart-oz
The mozart-oz language is a new generation of Computer languages jointly developed by Universit ät des Saarlandes, Swedish Institute of Computer Science, and Universit é catholique de Louvain.The language itself has the shadows of haskell, lisp, prolog, c, perl, java, and so on. It has almost all the features you want, such:Constrained programming features:In processing complex constraints, Languages provide search engines., We only need to
the period
2. Check syntax errors by code color Omitted 3. Use the syntax check function to check for syntax errors (1) Use the syntax detection function to detect possible syntactic errors 1. Parentheses or double quotation marks do not match. 2. The variable name assigned or the defined function name is incorrect. 3. The number of parameters for calling a function is different from the number of parameters required by the function. 4. the syntax of some special functions is i
stopEx 7.30(Mapcar # ' Append Words (mapcar # ' list ' (Uno dos tres quatro cinco))7.12 function functions' Represent function quote , # ' means function function , # ' cons equivalence with (function cons)> ' conscons> # ' cons## ' Returns a function object that can be called with Funcall> (setf G # ' (Lambda (x) (* x))) #7.13 Kwargs for applicative operators:from-endsuch as keyword parameters can also be applied to find-if,remove-if,reduce these functions> (Reduce # ' Cons ' (a b C D e)) ((((
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.