Discuss Scratch

BookOwl
Scratcher
1000+ posts

Stack Language

Many of you know that I created a programming language called Stack in scratch. Many of you also know that I have been working on a new version of the language in python. I am pleased to announce that it is ready to be released into the world! I have been hard at workadding several new features and improvements from the previous version, including
  • Lists!
  • Functions!
  • Lambdas!
  • Ultra-efficient recursion! You can recurse FOREVER!!!
  • Imports! (Thanks liam48D!)
  • Comments!

Installation Instructions:
  1. Make sure you have Python 3.
  2. Download Stack as a zip file from the Stack github repository. The link is at the bottom of the post.
  3. Unzip the zip. Drag the stack folder (it's a few layers deep) into a location on your Python Module search path.
  4. Run the command
    py -3 -m stack.cli
    in a terminal if you have python 3.3+. Otherwise, try running
    python -m stack.cli
    You will see some simple greeting text, and a prompt to enter a filename of a Stack program. There are several example programs in the example directory. To run a hello, world program, enter examples/hello_world.stack

I plan on making a tutorial on how to use and program Stack, but until then try checking out the wikipedia page for stack-oriented programming languages for how stack-oriented programming languages work, and then check out the example programs for how Stack works specifically, and check out constants.py for the list of commands.

If you have any questions, please post them here and I will do my best to answer

You can find the Stack github repo here

P.S. for all of the Python3 haters: I would like to port this to python2, if anyone would like to help with that. @Ethan_1 has ported it, should be live soon.

Last edited by BookOwl (Oct. 31, 2015 18:04:16)


who needs signatures
WooHooBoy
Scratcher
1000+ posts

Stack Language

SWEET!

considered harmful
BookOwl
Scratcher
1000+ posts

Stack Language

WooHooBoy wrote:

SWEET!
Thanks!

who needs signatures
WooHooBoy
Scratcher
1000+ posts

Stack Language

BookOwl wrote:

WooHooBoy wrote:

SWEET!
Thanks!
Gonna mess around right now.

edit: I can help with docs if you want.

Last edited by WooHooBoy (Oct. 13, 2015 18:37:19)


considered harmful
BookOwl
Scratcher
1000+ posts

Stack Language

WooHooBoy wrote:

BookOwl wrote:

WooHooBoy wrote:

SWEET!
Thanks!
Gonna mess around right now.
OK, once you get done, please tell me what you think of it.

who needs signatures
WooHooBoy
Scratcher
1000+ posts

Stack Language

BookOwl wrote:

WooHooBoy wrote:

BookOwl wrote:

WooHooBoy wrote:

SWEET!
Thanks!
Gonna mess around right now.
OK, once you get done, please tell me what you think of it.
I love it so far!

considered harmful
Firedrake969
Scratcher
1000+ posts

Stack Language

Use this.

'17 rickoid

bf97b44a7fbd33db070f6ade2b7dc549
Jonathan50
Scratcher
1000+ posts

Stack Language

Cool!

Firedrake969 wrote:

Use this.
But it is Python 3 already!

Not yet a Knight of the Mu Calculus.
Firedrake969
Scratcher
1000+ posts

Stack Language

lol wow
my bad

https://pypi.python.org/pypi/3to2

'17 rickoid

bf97b44a7fbd33db070f6ade2b7dc549
Jonathan50
Scratcher
1000+ posts

Stack Language

Firedrake969 wrote:

lol wow
my bad

https://pypi.python.org/pypi/3to2
Why?

Not yet a Knight of the Mu Calculus.
CatsUnited
Scratcher
1000+ posts

Stack Language

Jonathan50 wrote:

Firedrake969 wrote:

lol wow
my bad

https://pypi.python.org/pypi/3to2
Why?
If any guys uses Py2.

bottom text
meowflash
Scratcher
500+ posts

Stack Language

Can you make games using Stack?

More Stuff|My Bandcamp
My DeviantArt|Intro Voting For December 2015 August 10th 2016
Check out my Github, too!

Kumquats, this signature is inedible and poisonus.
Also try the code below in IBNIZ.
sxsaxAr+waxBr-*
Jonathan50
Scratcher
1000+ posts

Stack Language

meowflash wrote:

Can you make games using Stack?
Of course

Not yet a Knight of the Mu Calculus.
meowflash
Scratcher
500+ posts

Stack Language

Jonathan50 wrote:

meowflash wrote:

Can you make games using Stack?
Of course
What kind of games? Text-based? Platformers? Shooters?

More Stuff|My Bandcamp
My DeviantArt|Intro Voting For December 2015 August 10th 2016
Check out my Github, too!

Kumquats, this signature is inedible and poisonus.
Also try the code below in IBNIZ.
sxsaxAr+waxBr-*
Jonathan50
Scratcher
1000+ posts

Stack Language

meowflash wrote:

Jonathan50 wrote:

meowflash wrote:

Can you make games using Stack?
Of course
What kind of games? Text-based? Platformers? Shooters?
Probably all of them.

Not yet a Knight of the Mu Calculus.
meowflash
Scratcher
500+ posts

Stack Language

Jonathan50 wrote:

meowflash wrote:

Jonathan50 wrote:

meowflash wrote:

Can you make games using Stack?
Of course
What kind of games? Text-based? Platformers? Shooters?
Probably all of them.
Oh yeah! Maybe I can make a Text-based Platformer Shooter!

More Stuff|My Bandcamp
My DeviantArt|Intro Voting For December 2015 August 10th 2016
Check out my Github, too!

Kumquats, this signature is inedible and poisonus.
Also try the code below in IBNIZ.
sxsaxAr+waxBr-*
BookOwl
Scratcher
1000+ posts

Stack Language

Thanks for the input guys! Here is my plan for stack:
  1. Make sure that there are no bugs.
  2. Create some GOOD documentation.
  3. Create a module system.
  4. Add a way to create extension modules in Python.
  5. Port to Python 2 (very low priority)
I could really use some help with this, especially with designing new features and creating documentation (I am not a very good writer ), so if anyone wants to help, please say so.

who needs signatures
Jonathan50
Scratcher
1000+ posts

Stack Language

BookOwl wrote:

Thanks for the input guys! Here is my plan for stack:
  1. Make sure that there are no bugs.
  2. Create some GOOD documentation.
  3. Create a module system.
  4. Add a way to create extension modules in Python.
  5. Port to Python 2 (very low priority)
I could really use some help with this, especially with designing new features and creating documentation (I am not a very good writer ), so if anyone wants to help, please say so.
I think porting to Python 2 is rather simple, just like replacing input() with raw_input() and removing encoding/decoding for strings and removing non-ASCII characters from strings.

Not yet a Knight of the Mu Calculus.
BookOwl
Scratcher
1000+ posts

Stack Language

UPDATE:
I have released a new update to Stack.
It includes two new ops, letterof and reverse, a bug fix, and a new example.

who needs signatures
liam48D
Scratcher
1000+ posts

Stack Language

I just started experimenting with this for fun, because I've always used procedural languages before. Pretty cool!

Here's my first project:
'You inputted: '
'Enter a string: ' input
concat
print

One-line:
'You inputted: ' 'Enter a string: ' input concat print

Pretty cool stuff.

202e-202e-202e-202e-202e UNI-CODE~~~~~

Powered by DjangoBB