Search found 12 matches

by omarasl
Sun Jan 20, 2013 1:02 pm
Forum: Homework
Topic: Write A menu for dictionary
Replies: 4
Views: 11581

Re: Write A menu for dictionary

thank you very much .........
it seems good
by omarasl
Mon Dec 31, 2012 5:19 pm
Forum: Homework
Topic: transform functions to macro
Replies: 1
Views: 7304

transform functions to macro

Hello everybody, actually I post many posts but really I can not solve this problem , I want somebody to help me please I have these functions to sort a list an I want to transform them to macros or have some macros to do the same thing . (defun isMember (L E) "Test if element E is a member of ...
by omarasl
Sat Dec 29, 2012 6:23 am
Forum: Homework
Topic: Macros
Replies: 8
Views: 18766

Re: Macros

thanks for replying as I understand ( maybe I understood wrong) that we can replace the function to macro by simple changes in code , is it right????? for example if I have this function which use to insert in Binary search tree : (defun BST-insert (B E) (if (BST-empty-p B) (make-bin-tree-leaf E) (B...
by omarasl
Fri Dec 28, 2012 4:10 pm
Forum: Homework
Topic: Macros
Replies: 8
Views: 18766

Re: Macros

thanks for your reply , actually my question about common lisp macros
by omarasl
Fri Dec 28, 2012 11:42 am
Forum: Homework
Topic: Macros
Replies: 8
Views: 18766

Macros

Hello everybody , can someone help me in macros . are there any useful books or sites which contains good examples of macros . Actually , I have some functions about sorted list and binary trees, I have to write the same functions by using macros . I don`t know how , and my functions are not short (...
by omarasl
Sat Dec 15, 2012 11:49 am
Forum: Homework
Topic: remove node
Replies: 0
Views: 7774

remove node

hello every body , Actually , I found functions which use to remove node from binary tree these are the functions : (defun BST-remove (B E) "Remove E from BST B." (if (BST-empty-p B) B (if (bin-tree-leaf-p B) (BST-leaf-remove B E) (BST-node-remove B E)))) (defun BST-leaf-remove (L E) "...
by omarasl
Tue Dec 11, 2012 7:46 am
Forum: Homework
Topic: quick sort
Replies: 2
Views: 9973

quick sort

hello every body , I tried to sort a list by using the quick sort algorithm I put this code but I can not get the result (defun qsort (L) (if (null L) nil (append (qsort (list< (first L) (rest L)) ) (cons (first L) nil) (qsort (list>= (first L) (rest L)) ) ) ) ) would some one help me please with th...
by omarasl
Sun Dec 02, 2012 3:54 am
Forum: Common Lisp
Topic: Help me on Tokinzer
Replies: 2
Views: 5769

Help me on Tokinzer

Hello every body , I am very beginner in lisp , I need your help I am trying to do some thing like dictionary . I want an example of how I can take sentence like this "this is an example" then take each word "this" "is" "an" "example" thank you very ...
by omarasl
Sat Dec 01, 2012 9:33 am
Forum: Homework
Topic: list as an argument
Replies: 2
Views: 7909

Re: list as an argument

thank you very much
Actually , I have found very nice and helpful persons here thank you a lot
by omarasl
Sat Dec 01, 2012 7:20 am
Forum: Homework
Topic: list as an argument
Replies: 2
Views: 7909

list as an argument

hello everybody I know this is simple question but please help me because I am very beginner . my question is how to use a list as an argument in my functions . for example when I found this function to insert an element in sorted list : (defun sorted-list-insert (L E) "Insert element E into a ...