Python Forum
help in creating a new language with python
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
help in creating a new language with python
#1
i am creating my own programming language (the name is codime) interpreter\compiler with python,but every time i want to compile\interpret my script written in my language,i need to go to cmd and key in

first,the directory.
then,run it like this:
python test.py test.codime

test.py(the interpreter create with python)
test.codime(stuff written in my language)

1)how to make it run by just clicking a run button in a text editor instead of needing to go the cmd and write the above comment line  again and again to run it?

2)how do i make it so that the interpreter that i am creating can only interpret file that have the .codime file extension?(like python can only compile file with  .py   extension.

i am a beginner, so please make the answer as detailed as possible  Smile ,but not too long word ,if possible.  Big Grin
thanks......
Reply


Messages In This Thread
help in creating a new language with python - by hsunteik - Dec-19-2016, 04:45 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  logo language code into python aayushi98 2 67,550 Jan-26-2021, 09:02 PM
Last Post: Serafim
  Correct Language for creating a calculation tool bradkernohan 2 1,573 Nov-29-2020, 09:01 AM
Last Post: DeaD_EyE
  Inconsistency in Python programming language? newbieAuggie2019 31 11,486 Oct-06-2019, 03:21 PM
Last Post: adt
  Terms describing Python Programming language leodavinci1990 3 2,735 Aug-12-2019, 02:48 PM
Last Post: leodavinci1990
  How to get image from WolframAlpha by using Python language manhnt 1 2,696 Oct-27-2018, 02:07 PM
Last Post: Larz60+
  How to make the python default language be 3.6 instead of 2.7 sylas 4 6,839 Jul-06-2018, 06:11 AM
Last Post: sylas
  [split] create a virtual keyboard of an unknown foreign language with python fakoly 0 2,404 May-28-2018, 01:34 AM
Last Post: fakoly
  Arabic language is backward in python charts bandar 3 3,610 Feb-23-2018, 07:10 AM
Last Post: Larz60+
  Learning Python "as a second language" with a MOOC Bass 6 5,038 Mar-25-2017, 02:30 PM
Last Post: Bass

Forum Jump:

User Panel Messages

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