[EMAIL PROTECTED] schrieb:
> Hello,
>
> I am trying to make a program for 3D modelling with "programming".And
> I want make my own program commands,
>
> for example when user type code in my program:
>
> "<> OS"- (THIS IS MY IMAGINARY EXAMPLE OF KEYWORD),
>
> my program must write this code in
>>> "<> OS"- (THIS IS MY IMAGINARY EXAMPLE OF KEYWORD),
>>> my program must write this code in some user file, but my
>>> program must read this command like: "import os".How
>>> can I do something like that??
>> The keywords are listed in Grammar/Grammar. You need to edit
>> this file, then recomp
"Martin v. Löwis" <[EMAIL PROTECTED]> writes:
> (unattributed author) wrote:
> > "<> OS"- (THIS IS MY IMAGINARY EXAMPLE OF KEYWORD),
> > my program must write this code in some user file, but my
> > program must read this command like: "import os".How
> > can I do something like that??
>
> The key
> "<> OS"- (THIS IS MY IMAGINARY EXAMPLE OF KEYWORD),
>
> my program must write this code in some user file, but my
>
> program must read this command like: "import os".How
>
> can I do something like that??
The keywords are listed in Grammar/Grammar. You need to edit
this file, then recompile
[EMAIL PROTECTED] je napisao/la:
> I'm not quite clear on what you are asking, but
> you can use the __import__() function to import modules by name.
>
I want to invent something like my "programming language" like Python
with the same keywords just changed,
for example if user type in my "progr
I'm not quite clear on what you are asking, but
you can use the __import__() function to import modules by name.
On Jun 21, 3:07 pm, [EMAIL PROTECTED] wrote:
> Hello,
>
> I am trying to make a program for 3D modelling with "programming".And
> I want make my own program commands,
>
> for example wh