Jellycuts / Jellycuts-Issues

A public issue tracker for the Jellycuts iOS app.
23 stars 0 forks source link

Importing/Repository system #113

Open MinecraftPublisher opened 2 years ago

MinecraftPublisher commented 2 years ago

This is a really big demand from any viewpoint so I have divided it into two bits:

  1. Importing of files
  2. Importing of repositories

Act 1: Importing of files

They could be done as mentioned in #111: These are the ones that I recommend:

import JellyFile1.jelly
JellyFile1.myFunction()
import myFunction from JellyFile1.jelly
myFunction()

And these ones are suggested but not recommended.

import JellyFile1.jelly as Functions1
Functions1.myFunction()
import myFunction as func from JellyFile1.jelly
func()

Act 2: The repository system

As mentioned in #109: Such syntax could be hosted on a GitHub gists file or a GitHub repository.

[
     {
          "name": "MyLib",
          "meta": "A library of useful functions for JellyCuts."
          "source": "https://mylib.xyz/repo/MyLib.jelly"
     },
     {
          "name": "Flash",
          "meta": "A programming language written in Jelly.",
          "source": "https://github.com/MinecraftPublisher/Flash/Flash.jelly"
     }
]
MinecraftPublisher commented 2 years ago

@ActuallyZach I recommend closing #111 and #109 now