New Language Help

So, I am trying to make a new language by importing the python file in the new language (Test.salad) here is the link » https://replit.com/@SalladShooter/salad-Language#Test.salad

How would I import the file as a module for the .salad file?

1 Like

if you want to import just 1 thing
do
from <insert module here ?> import <insert 1 thing here?>
if you want to import ALL
do
from <insert module here ?> import *

My file name is salad.py so would I put the file name and .py or just file name after the from?

Like

from salad.py import *

Or

from salad import *

It would be this one.

1 Like

Like this?


It is still not working though. The main.py has

output = print

Did you modify your run command/entrypoint?

3 Likes

What is that function?

What? I was referring to the .replit file.

Oh, I know what you mean now.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.