Search found 3 matches

by halastoi
Thu May 03, 2012 12:51 am
Forum: Common Lisp
Topic: How to implement syntactic analysis of Simple Precedence
Replies: 2
Views: 5011

How to implement syntactic analysis of Simple Precedence

I have to do in lisp, algorithm of simple preceding. Here I found some links with information about Simple Precedence Grammars, but I do not understand how to do this in CLISP. Here's a link Here's another link May you have some ideas how to do this in CLISP, even in pseudocode. Thanks in advance!
by halastoi
Thu Apr 26, 2012 5:03 am
Forum: Homework
Topic: Ordering a list depending on the order of elements in anothe
Replies: 3
Views: 9453

Ordering a list depending on the order of elements in anothe

I have a list (SetQ L '(1 j 3 k 4 h 5 n 6 w)) I have to do a function Order that has a list with 'n' atoms at entry, it must check if each atom of that list is contained in list L and order them according to the order specified in list L, if the atom is not part of the list L then the result will be...
by halastoi
Wed Apr 25, 2012 3:31 am
Forum: Common Lisp
Topic: Check if two elements are in order one after another in a li
Replies: 2
Views: 4944

Check if two elements are in order one after another in a li

I have a list (SetQ List '(1 j 3 k 4 h 5 n 6 w)) I need to do a function Verify that will verify if the first atom is before the 2nd. I want to verify this: > Verify(3 k) result should return > T // because atom '3' is anywhere before atom 'k' And in this case : > Verify(h 4) result should return > ...