Jellycuts-Issues icon indicating copy to clipboard operation
Jellycuts-Issues copied to clipboard

Importing/Repository system

Open MinecraftPublisher opened this issue 3 years ago • 1 comments
trafficstars

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 avatar May 23 '22 17:05 MinecraftPublisher

@ActuallyZach I recommend closing #111 and #109 now

MinecraftPublisher avatar May 23 '22 17:05 MinecraftPublisher