cd "Shen 19.2"; patch -p0 < ../shen_batch_mode.patch
> shen -e "[1 a]" -t -e "[1 1]" -e 3 -t -e 4[1 a]"[1 1] : (list number)""3 : number"4
Neat! You can now submit this as a PR to https://github.com/Shen-Language/shen-sources if you want.
On Sunday, October 9, 2016 at 8:40:21 AM UTC-5, Neal Alexander wrote:This patch against the SBCL version of BSD Shen 19.2 adds:
- Support for batch processing: shen.exe: [-t] [-e string] [-l filename]
-t : toggle type checking
-e : eval, print, exit
-l : load script, exit- A new global variable *system-argv*
Install:cd "Shen 19.2"; patch -p0 < ../shen_batch_mode.patch
Usage:> shen -e "[1 a]" -t -e "[1 1]" -e 3 -t -e 4[1 a]"[1 1] : (list number)""3 : number"4Caveats:
- Tested on windows 10 with SBCL 1.3.10, and Microsoft's linux subsystem version of 'patch'.
- control-c isn't working right in REPL mode - no clue why.
- SBCL doesn't strip its own runtime command line options, so it is handled by "install.lsp" in a pretty stupid way.
--
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+unsubscribe@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.
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.
--BD
You're right, I keep forgetting that the SBCL port is not on Github. I'm just so used to seeing it when I download the sources from the web page. Sorry.
To unsubscribe from this group and stop receiving emails from it, send an email to qilang+unsubscribe@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.
To unsubscribe from this group and stop receiving emails from it, send an email to qilang+unsubscribe@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.
partial function primitive-constants;track primitive-constants? (y/n)
Partial function errors block waiting for user input:partial function primitive-constants;track primitive-constants? (y/n)
Is there an option to disable this, and are there any other error conditions produced by Shen that expect user input? They need to be disabled for batch processing.
On Sunday, October 9, 2016 at 3:40:21 PM UTC+2, Neal Alexander wrote:This patch against the SBCL version of BSD Shen 19.2 adds:
- Support for batch processing: shen.exe: [-t] [-e string] [-l filename]
-t : toggle type checking
-e : eval, print, exit
-l : load script, exit- A new global variable *system-argv*
Install:cd "Shen 19.2"; patch -p0 < ../shen_batch_mode.patch
Usage:> shen -e "[1 a]" -t -e "[1 1]" -e 3 -t -e 4[1 a]"[1 1] : (list number)""3 : number"4Caveats:
- Tested on windows 10 with SBCL 1.3.10, and Microsoft's linux subsystem version of 'patch'.
- control-c isn't working right in REPL mode - no clue why.
- SBCL doesn't strip its own runtime command line options, so it is handled by "install.lsp" in a pretty stupid way.
--
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+unsubscribe@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.
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.
--BD
--
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 unsubscribe from this group and stop receiving emails from it, send an email to qilang+unsubscribe@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.
--BD--BD
To unsubscribe from this group and stop receiving emails from it, send an email to qilang+unsubscribe@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.
To unsubscribe from this group and stop receiving emails from it, send an email to qilang+unsubscribe@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.
Ctrl-C works fine in your repo. There is probably some strange namespace issue in my local copy or something.
The "Native" dir needs to be manually created after a fresh git clone of your repository btw.
To unsubscribe from this group and stop receiving emails from it, send an email to qilang+unsubscribe@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.