Liquid Common Lisp On Suns.

Slides:



Advertisements
Similar presentations
C-LISP. LISP 2 Lisp was invented by John McCarthy in 1958 while he was at the Massachusetts Institute of Technology (MIT).John McCarthyMassachusetts Institute.
Advertisements

Lab 8 printf() modular arithmetic how to read assignments
Normal Distributions: Finding Probabilities
LISP Programming. LISP – simple and powerful mid-1950’s by John McCarthy at M.I.T. “ LIS t P rocessing language” Artificial Intelligence programs LISP.
Arrays (1) You create an array in LISP by using the function (make- array ). All elements are initially set to nil. To create a 1-dimensional array of.
True BASIC Ch. 6 Practice Questions. What is the output? PRINT X LET X = -1 PRINT X FOR X = 4 TO 5 STEP 2 PRINT X NEXT X PRINT X END.
Algorithms. Software Development Method 1.Specify the problem requirements 2.Analyze the problem 3.Design the algorithm to solve the problem 4.Implement.
Introduction to Artificial Intelligence Lisp Ruth Bergman Fall 2002.
Returning values from functions You can return a value from a function by using the built- in function : ( return-from Function_name value) For example:
Symbolic Expressions (S Expressions) Syntax: Opening and Closing parenthesis having elements in between. List represented in LISP: (A B2 C3 Shahid) (A.
Logical functions and - Logical AND function. Example: (and (> 5 4) (< 5 4)) or - Logical OR function. Example: (and (> 5 4) (< 5 4)) not - Logical negation.
Liang, Introduction to Java Programming, Seventh Edition, (c) 2009 Pearson Education, Inc. All rights reserved Java Programming Practice.
LISP 1.5 and beyond A very quick tour. Data Atoms (symbols) including numbers – All types of numbers including Roman! (well, in the early days) – Syntactically.
Allegro CL Certification Program Lisp Programming Series Level I Session Top Ten Things to Know.
Indexing. The Idea of Indexing Indexing means having several data items organized under a single name where the individual items can be referred to by.
CSE S. Tanimoto Lisp Lisp S-Expressions: ATOMs Every Lisp object is either an ATOM or a CONS Symbols and numbers are kinds of atoms: X, APPLE,
Basic Lisp CIS 479/579 Bruce R. Maxim UM-Dearborn.
© 2006 Autodesk AutoCAD: Secrets Every User Should Know Chapter 8 - AutoLISP by Example: Getting Started.
Lisp Files, Arrays, and Macros CIS 479/579 Bruce R. Maxim UM-Dearborn.
Metric System What tools are used to measure volume?
UMBC CMSC Common Lisp II. UMBC CMSC Input and Output Print is the most primitive output function > (print (list 'foo 'bar)) (FOO BAR) The.
CSE (c) S. Tanimoto, 2002 AI Techniques 1 Where and When Do Symbols Refer to Values and Functions? Scope and Extent of Bindings Bindings Scope Extent.
Milos Hauskrecht (PDF) Hieu D. Vu (PPT) LISP PROGARMMING LANGUAGE.
CSE S. Tanimoto More-Concepts - 1 More Programming Language Concepts Currying Lazy Evaluation Polymorphism.
1 Variable Declarations Global and special variables – (defvar …) – (defparameter …) – (defconstant …) – (setq var2 (list 4 5)) – (setf …) Local variables.
For Loop Tips And Tricks
Creating a mystic meg program A simple program asking the user questions and using their answers to build up a fortune telling in a list.
CSE S. Tanimoto Lisps's Basic Functionality 1 LISP: Basic Functionality S-expressions Conses Lists Predicates Evaluation and quoting Conditional.
CSE 341, S. Tanimoto Lisp Explicit Application of Functions and Functional Arguments In Lisp, functions can be passed as arguments to other functions.
Day 26 Arrays Episode 2. Array Lengths To determine the length of an array, use the command: array_Name.length.
Lecture 5: Layers of Control. Nested while Loops Problem Multiplying two numbers and outputting the result only if they are both less than 5. (i.e. Start.
OCR Computing GCSE © Hodder Education 2013 Slide 1 OCR GCSE Computing Python programming 3: Built-in functions.
Magic 8 ball. "Design and write a python program that emulates a Magic Eight Ball. Your program should continually prompt the user to enter a question.
LISP LISt Processing. History & Overview b b One of the oldest high level programming languages. b b First developed in 1958 by John McCarthy. b b Later.
1 Outline Review Introduction to LISP Symbols and Numbers Lists Writing LISP Functions LISPWorks.
Exercise : Write a program that print the final price of purchase at a store where everything costs exactly one dollar. Ask for the number of items purchased.
Lisp S-Expressions: ATOMs
Defining Macros in Lisp
Modern Programming Languages Lecture 20 Fakhar Lodhi
LISP LISt Processing.
Is it convenient to write What about
Lisp Tutorial Click on Xlisp icon – you enter the interpreter
75 Has 7 in the tens place Odd Number Less than 100
الوحدة الرابعة البرمجة وصياغة حل المسائل البرمجة وأهميتها أهداف الدرس الأول مفهوم البرمجة. الفرق بين المبرمج ومستخدم البرنامج. الحاجة إلى البرامج.
Lists in Python Outputting lists.
Class Examples.
Python 21 Mr. Husch.
Modern Programming Languages Lecture 20 Fakhar Lodhi
Input-Output-Process Demo
Functional Programming Concepts
Lisp: Using Functions as Data
Functional Programming Concepts
Lisp: Representation of Data
Defining Macros in Lisp
Defining Functions with DEFUN
Decisions In today’s lesson we will look at:
Lisp: Using Functions as Data
Bindings, Scope, and Extent
Making Tens.
LISP: Basic Functionality
LISP LISt Processing.
Functional Programming Concepts
Making Tens.
LISP: Basic Functionality
Bindings, Scope, and Extent
Common Lisp II.
LISP: Basic Functionality
Lisp: Representation of Data
CS 1111 Introduction to Programming Spring 2019
LISP primitives on sequences
Presentation transcript:

Liquid Common Lisp On Suns

Getting Lisp to show your result Lisp on the Suns is set to abbreviate output: It shows you no more than three levels of a list It shows you no more than ten items in a level This probably isn’t what you want These numbers are controlled by variables that you can set A setting of NIL means “no limit”

*print-length* USER 1 : 1 > '(a b c d e f g h i j k l m n) USER 2 : 1 > (setq *print-length* nil) NIL USER 3 : 1 > '(a b c d e f g h i j k l m n) (A B C D E F G H I J K L M N)

*print-level* USER 4 : 1 > '(a (b (c (d (e))))) (A (B (C #))) USER 5 : 1 > (setq *print-level* nil) NIL USER 6 : 1 > '(a (b (c (d (e))))) (A (B (C (D (E)))))

The End