Mistium / Origin-OS

originOS is a scratch desktop gui made by @Mistium
https://origin.mistium.com
28 stars 9 forks source link

[Suggestion] python #59

Closed koo1140 closed 7 months ago

koo1140 commented 8 months ago

run python instead of osl

except no modules (maybe later) builtin: time, random, string

print("hi") ~ outputs to console "hi" without quotes

other python stuff...

module:

time: time.sleep(1) # waits i second
date: time.hour time.minute time.day

random:

random.shuffle("hey") # out example: eyh
random.int(2, 20) # returns a number between 2 and 20

string.ascii # returns alphabet symbols numbers

import module_name module_name.function(param1, param2 ...)

Mistium commented 8 months ago

would be very complex to add a full python interpreter

Mistium commented 8 months ago

oops didnt mean to close this

Mistium commented 8 months ago

lua may be easier to implement

That may be true

koo1140 commented 7 months ago

friendly reminder

Mistium commented 7 months ago

still unlikely to be added, i have a regex to split up python now but there are too many things id have to add to actually make python. Id be better off making a full new project to make a python interpreter in scratch.