Re: [Readable-discuss] Sweetening code with #'

2014-10-11 Thread David A. Wheeler
 On October 4, 2014 10:00:23 AM EDT, martijn brekelmans tijntj...@msn.com 
 wrote:
 I'm following practical lisp and there's a little bit of code using a
 #', I can't figure out how to sweeten this piece of code. Using the
 sweeten tool replaces #' with syntax, (the result is also in the
 pastebin link below), but it doesn't work when running, clisp tells me
 syntax is undefined.

It may not be as obvious as it *should* be, but near the end of the Common Lisp 
tutorial is this text:
 Sweeten is designed to read Scheme (or more specifically, Guile) S-expression 
 syntax.  The -C option  adds some support for Common Lisp notation instead, 
 in particular, #'function.

So just use:
sweeten -C filename.lisp  filename.slisp

and you should have a sweetened version of filename.lisp in filename.slisp.
If it used #'function, it should continue to work.  Sorry that you *have* to 
use -C,
but the semantics of #' differ between Scheme and Common Lisp, so the
sweeten program has to know that you're using Common Lisp semantics.

--- David A. Wheeler

--
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://p.sf.net/sfu/Zoho
___
Readable-discuss mailing list
Readable-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/readable-discuss


[Readable-discuss] Sweetening code with #'

2014-10-04 Thread martijn brekelmans
I'm new to lisp and I thought using readable would be a great bridge for 
learning lisp. So far it's been pretty good, except for one time :(
I'm following practical lisp and there's a little bit of code using a #', I 
can't figure out how to sweeten this piece of code. Using the sweeten tool 
replaces #' with syntax, (the result is also in the pastebin link below), but 
it doesn't work when running, clisp tells me syntax is undefined.

Here's the piece of code that I'd like to sweeten.

It would be great if the docs contained examples on sweetening expressions that 
use #' (and probably also for similar symbols, like ').
  --
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311iu=/4140/ostg.clktrk___
Readable-discuss mailing list
Readable-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/readable-discuss


Re: [Readable-discuss] Sweetening code with #'

2014-10-04 Thread David A. Wheeler
Are you using the -C option in sweeten?  By default, sweeten assumes scheme 
syntax.  You need -C so that it knows that you are processing Common Lisp

On October 4, 2014 10:00:23 AM EDT, martijn brekelmans tijntj...@msn.com 
wrote:
I'm new to lisp and I thought using readable would be a great bridge
for learning lisp. So far it's been pretty good, except for one time :(
I'm following practical lisp and there's a little bit of code using a
#', I can't figure out how to sweeten this piece of code. Using the
sweeten tool replaces #' with syntax, (the result is also in the
pastebin link below), but it doesn't work when running, clisp tells me
syntax is undefined.

Here's the piece of code that I'd like to sweeten.

It would be great if the docs contained examples on sweetening
expressions that use #' (and probably also for similar symbols, like
').
 



--
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS
Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311iu=/4140/ostg.clktrk



___
Readable-discuss mailing list
Readable-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/readable-discuss

--- David A.Wheeler--
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311iu=/4140/ostg.clktrk___
Readable-discuss mailing list
Readable-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/readable-discuss