Python Forum
a new language based on python
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
a new language based on python
#1
i've wanted to create a new language based on python. this language would differ by having some new kinds of statements added. my thought to run it is a python program that reads in code in this new language and scans the lines for the new statements. for each of these it finds, it translates them to one or more lines of python code that performs what the coded statement is expected to do and replaces the one source line with the translation results. then the whole new list is joined together and passed to exec(). does this sound like a viable way to run such a language?
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
  Can Python be used as a macro language for excel, Word, etc.? CynthiaMoore 8 2,939 Sep-17-2022, 08:12 AM
Last Post: stevendaprano
  Python Has Major Problems as Language Dave 13 3,582 May-20-2022, 10:12 AM
Last Post: stevendaprano
  TIOBE Index for October 2021 - Python programming language number 1! Yoriz 1 1,508 Oct-07-2021, 11:35 PM
Last Post: Larz60+
  Is python an interpreted language or a compiled language? GouravDas 1 1,982 Jun-23-2020, 10:38 AM
Last Post: Gribouillis
  what programming language to learn other than python in real mass-production product? Kai 1 2,081 Apr-12-2020, 04:40 AM
Last Post: Larz60+
  Chinese coding language ‘Mulan’ found to be Python fork buran 0 1,696 Jan-22-2020, 04:30 AM
Last Post: buran
  What is the best book for in-depth Python for advanced other-language programmers? user118967 1 2,617 Jun-04-2019, 07:56 PM
Last Post: snippsat
  Coconut - A Functional Language Which Compiles to Python nilamo 2 2,692 Jan-04-2019, 12:01 AM
Last Post: micseydel
  Some Guy Today Told Me Python Isn't A Real Programming Language digitalmatic7 11 10,037 Dec-01-2017, 12:58 PM
Last Post: I_love_py

Forum Jump:

User Panel Messages

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