Make your own console
Ok, so, ive been seeing a lot of custom languages these days on repl and have decided to help people make custom intereters (consoles)!
Change the settings of your customized console from lines 1-25!
To add commands, go to
config.py. Commands are functions and parameters are the function parameters.
Please comment bugs in the comments. Also, don't be afraid to post the console you've made from this in the comments!
Please give me feedback on how to improve! :DDDD
I found a new bug: if you define a function without params (e.g.
def func():) it will not be callable. calling it will say function funcname or whatever and adding a param to it will cause a param error
also a minor thing: if you define a class for commands (e.g. for something like
log.write using a log class) typing help (class name) does not return anything, seemingly ignoring your input. maybe make it list the functions of that class?
one more thing, you should make it so we can decide the separation character in commands (e.g instead of command param param2 I could make it command param,param2, or command param!param2) so we can do stuff with params that have spaces
ps: I'm making §tar with this https://repl.it/@SeamusDonahue/SStar#main.py
I got one problem: I wrote a function:
def get(prompt): return input(prompt)
but when I do
get "test" or
get("test") it gives a "syntax error"