function <!> in Shen YACC

83 views
Skip to first unread message

josef...@gmail.com

unread,
Jul 17, 2016, 1:31:09 PM7/17/16
to Shen
Tried to use  it ,but got error

(16-) (defcc <asbs>  [a <!> ] b := <!> ;)

<asbs>


(17-) (compile (function <asbs> ) [ [a 1 2 3] b])

The function COMMON-LISP-USER::<!> is undefined.

Mark Tarver

unread,
Jul 18, 2016, 8:28:48 AM7/18/16
to qil...@googlegroups.com

Shen, copyright (C) 2010-2015 Mark Tarver
www.shenlanguage.org, Shen Professional Edition 10
running under Common Lisp, implementation: SBCL
port 2.1 ported by Mark Tarver
commercially licensed to Mark Tarver


(0-)  (defcc <asbs>  [a <!> ] b := <!> ;)
<asbs>

(1-) (compile (function <asbs> ) [ [a 1 2 3] b])
[1 2 3]

But the OS version fails.  I haven't looked at the OS version for a year now.   People stopped funding the maintenance so I stopped doing the work.  I'll mail a patch for it now and I'll send you it by email before I get round to mounting it.

Mark

--
You received this message because you are subscribed to the Google Groups "Shen" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qilang+un...@googlegroups.com.
To post to this group, send email to qil...@googlegroups.com.
Visit this group at https://groups.google.com/group/qilang.
For more options, visit https://groups.google.com/d/optout.

deech

unread,
Jul 18, 2016, 1:04:10 PM7/18/16
to Shen
This is occurring because <!> is not external to the `shen` package. This works:

(1-) (defcc <asbs>  [a shen.<!> ] b := shen.<!> ;)
<asbs>

(2-) (compile (function <asbs> ) [ [a 1 2 3] b])
[1 2 3]

-deech

Bruno Deferrari

unread,
Nov 29, 2016, 1:31:46 PM11/29/16
to qil...@googlegroups.com
This patch fixes this:

https://github.com/Shen-Language/shen-sources/pull/11

I forgot about this issue until I saw an email today with defcc snippets in it.

I haven't merged it yet, just waiting for someone else from the
committee to review it.
--
BD
Reply all
Reply to author
Forward
0 new messages