Discuss Scratch
- Jonathan50
-
Scratcher
1000+ posts
Nustack
Why do you have your shebangs
instead of
or
?
#!python3
#!/usr/bin/python3
#!/usr/bin/env python3
- Jonathan50
-
Scratcher
1000+ posts
Nustack
Here's a workaround to install it on *nix:
and to update:
I like the interactive prompt.
Just one thing: Ctrl-Z is Windows only. On *nix it's Ctrl-D.
sudo git -C /usr/lib/python3.?/site-packages/ clone https://github.com/BookOwl/nustack.git
(cd /usr/lib/python3.?/site-packages/nustack/ && sudo git pull)
I like the interactive prompt.
Just one thing: Ctrl-Z is Windows only. On *nix it's Ctrl-D.
- Jonathan50
-
Scratcher
1000+ posts
Nustack
Just got it running, coolWait so if I understand this then {…} is a lambda and forever pops a function and repeats it forever? Pretty cool.
Just remade yes:{'y' show} forever
- Jonathan50
-
Scratcher
1000+ posts
Nustack
1 { dup + dup show } forever2, 4, 8, 16, 32…
1 { 1 + dup show } forever- DrKat123
-
Scratcher
1000+ posts
Nustack
Cool!NutstackAnything that you can do in Python, you can do in Nustack.
What can you use this for?
- BookOwl
-
Scratcher
1000+ posts
Nustack
Why do you have your shebangsTheinstead of#!python3or#!/usr/bin/python3?#!/usr/bin/env python3
#!python3
Here's a workaround to install it on *nix:Cool! Can I put that in the README?and to update:sudo git -C /usr/lib/python3.?/site-packages/ clone https://github.com/BookOwl/nustack.gitI like the interactive prompt.(cd /usr/lib/python3.?/site-packages/nustack/ && sudo git pull)
Just one thing: Ctrl-Z is Windows only. On *nix it's Ctrl-D.OK, I'll change the instructions.
That's correct. Thanks!Just got it running, coolWait so if I understand this then {…} is a lambda and forever pops a function and repeats it forever? Pretty cool.
Just remade yes:{'y' show} forever
What does the backtick (`) mean?The ` is used to denote a symbol, which is much like a string (both strings and symbols are stored as Python strings), but the can only hold characters allowed in Nustack identifiers. Symbols mostly used in the import/import* and define functions to give the name of the thing you are importing are defining.
Cool!NutstackAnything that you can do in Python, you can do in Nustack.
What can you use this for?

- Jonathan50
-
Scratcher
1000+ posts
Nustack
Can we access command-line arguments in Nustack?
(the first should be the name of the program used to invoke the Nustack program, the second the first argument, …)
(the first should be the name of the program used to invoke the Nustack program, the second the first argument, …)
- BookOwl
-
Scratcher
1000+ posts
Nustack
Can we access command-line arguments in Nustack?Not yet, but I will add that soon.
(the first should be the name of the program used to invoke the Nustack program, the second the first argument, …)
- BookOwl
-
Scratcher
1000+ posts
Nustack
Can we access command-line arguments in Nustack?I added it, the builtin command argv will give you a list of command line arguments passed to the script.
(the first should be the name of the program used to invoke the Nustack program, the second the first argument, …)
- Jonathan50
-
Scratcher
1000+ posts
Nustack
I'm writing vim syntax highlighting. What are the valid characters for identifiers/symbols?
EDIT:
EDIT:
0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&()*+,-./:;<=>?@\\^_|~
Last edited by Jonathan50 (March 6, 2016 00:31:28)
- BookOwl
-
Scratcher
1000+ posts
Nustack
Here is the regex used to match unquoted symbols:
Quoted symbols are the same, except that there is a ` in front of the character class.
[0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&()*+,-./:;<=>?@\\^_|~]+
- Jonathan50
-
Scratcher
1000+ posts
Nustack
Here is the regex used to match unquoted symbols:Why notQuoted symbols are the same, except that there is a ` in front of the character class.[0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&()*+,-./:;<=>?@\\^_|~]+
[0-9a-zA-Z!#$%&()*+,-./:;<=>?@\\^_|~]+
Last edited by Jonathan50 (March 6, 2016 00:32:58)








)