Python Forum
my stack language - designing it
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
my stack language - designing it
#1
i've started to write up some thoughts about my stack language that i will implement in Python3 and am seeking some input. doing such a thing in Python3 opens up some interesting possibilities.

1. the code will come from a list or a file and each element will be a string that the stack engine will act on (as a sequence of some form). does a generator make any sense?

2. operators will have names, such as 'add' and/or '+' for adding. how do you think i should do this? i'm thinking that if i do use '+' it should do anything Python3 does with it's plus operator, such as concatenation of strings.

3. can you suggest a scope of operators, that is, how many there should be and what all they should do?

4. how would you like to see it let you access local vs global namespaces?

5. how would you like to seen functions defined? as a list that can be run/called by the stack engine? what if a function is imported that is not in stack form?

0. any other thoughts?
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  the language i was designing Skaperen 0 1,722 Aug-21-2018, 05:50 AM
Last Post: Skaperen

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020