Skip to content

Commit

Permalink
v3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
AsynchronousAI committed Oct 8, 2023
2 parents f04a9a4 + d3afe1d commit d2e062e
Show file tree
Hide file tree
Showing 216 changed files with 2,374 additions and 13,277 deletions.
2 changes: 1 addition & 1 deletion .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,6 @@
"skipCi": true,
"repoType": "github",
"repoHost": "https://github.com",
"projectName": "roblox-pyc",
"projectName": "roblox-py",
"projectOwner": "AsynchronousAI"
}
53 changes: 53 additions & 0 deletions .argon.project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"name": "Argon",
"tree": {
"$className": "DataModel",
"Chat": {
"$path": "src/Chat"
},
"Lighting": {
"$path": "src/Lighting"
},
"LocalizationService": {
"$path": "src/LocalizationService"
},
"ReplicatedFirst": {
"$path": "src/ReplicatedFirst"
},
"ReplicatedStorage": {
"$path": "src/ReplicatedStorage"
},
"ServerScriptService": {
"$path": "src/ServerScriptService"
},
"ServerStorage": {
"$path": "src/ServerStorage"
},
"SoundService": {
"$path": "src/SoundService"
},
"StarterGui": {
"$path": "src/StarterGui"
},
"StarterPack": {
"$path": "src/StarterPack"
},
"StarterPlayer": {
"StarterCharacterScripts": {
"$path": "src/StarterPlayer/StarterCharacterScripts"
},
"StarterPlayerScripts": {
"$path": "src/StarterPlayer/StarterPlayerScripts"
}
},
"Teams": {
"$path": "src/Teams"
},
"TestService": {
"$path": "src/TestService"
},
"Workspace": {
"$path": "src/Workspace"
}
}
}
Binary file not shown.
40 changes: 0 additions & 40 deletions .github/workflows/python-publish.yml

This file was deleted.

23 changes: 0 additions & 23 deletions .github/workflows/sponsors.yml

This file was deleted.

14 changes: 13 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,13 @@
*.pyc
# idrk
*.pyc

# Cobalt preprocessed and compiled
*.cii
*.byte

test.py
test.lua

# Build
/build
/dist
4 changes: 2 additions & 2 deletions COPYRIGHTS.txt → COPYRIGHTS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Pythonlua:
# Pythonlua:

Apache License
Version 2.0, January 2004
Expand Down Expand Up @@ -202,7 +202,7 @@ Pythonlua:
See the License for the specific language governing permissions and
limitations under the License.

TextBoxPlus and Highlighter (used in roblox plugin):
# TextBoxPlus and Highlighter (used in roblox plugin):

MIT License

Expand Down
3 changes: 0 additions & 3 deletions MANIFEST.in

This file was deleted.

68 changes: 9 additions & 59 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Introduction

> **NOTICE:**
> This is the indev build
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
[![All Contributors](https://img.shields.io/badge/all_contributors-6-orange.svg?style=flat-square)](#contributors-)
<!-- ALL-CONTRIBUTORS-BADGE:END -->
Expand All @@ -10,6 +13,7 @@
## Sponsors
<!-- sponsors --><!-- sponsors -->
<sub>0 sadly</sub>

## Contributors
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
<!-- prettier-ignore-start -->
Expand Down Expand Up @@ -46,63 +50,9 @@

***

```
pip install roblox-pyc
```



Python, Lunar, C, C++ Compiler for Roblox.

Python 3.13 (dev), C (all versions), C++ (all versions), Lunar -> Lua(u)

> This has NO RELATION with .pyc files, roblox-py, or roblox-ts
> C/C++ is still in progress.
> Python is fully implemented, all code should work because it supports the dev build of Python 3.13.
***

### Features

* 🔄 **Interchangeable**\
roblox-pyc supports using Lua, Lunar, roblox-ts, C, C++, and Python all at once so you can have the best of all sides.
* ☄️ **Ultrafast compiler**\
The roblox-pyc compiler is designed so entire projects can be compiled in a matter of seconds
* 📉 **Optimized code**\
roblox-pyc is a source-source compiler, it doesn't use any WASM or anything like that to cheat its way and has major performance drops. It uses an AST and rewrites your code and optimizes it.
* ⚠️ **Easy error checking**\
Your code can easily be checked for errors because of the precompiler error system.
* 🧩 **Cross-language module support**\
roblox-pyc allows you to require/import modules from other languages.
* 🛠️ **Supports everything**\
Regardless if you use Rojo, Argon, in Mac, Windows with any code editors or anything else roblox-pyc is highly customizable and allows you to use any of them
* ↗️ **Customizable**\
You can customize roblox-pyc to change your C/C++ version or dynamic library or any QoL features, not only that roblox-pyc and all of its dependencies are open-source so you can mod it and change anything to your liking
* 💻 **Languages**\
roblox-pyc supports a great variety of languages that are fully programmed.
* 🌎 **Upload your code to the world**\
Using a VScode sync plugin you can upload your code to the world with GitHub, GitLab, whatever.
* 📲 **In-roblox plugin**\
If you dont what to use VScode, python supports a roblox plugin which can be hosted in the terminal with all the features listed above!
* 🌙 **Lunar**\
roblox-pyc comes with a custom language called lunar with amazing syntax features and an extended standard library, which is a modified version of MoonScript for roblox

***
## Unsupported features
- Import * (python)
- Syntax based slicing (python) (workaround: use slice builtin function)
- C/C++ (not implemented yet)
- _\_slots_\_ (python) (adding soon)
- _\_dict_\_ (python) (adding soon)
***

### Credits
Python, C, C++ Compiler for Roblox.

* [Highlighter](https://github.com/boatbomber/Highlighter). modified to work with python (plugin usage)
* [TextBoxPlus](https://github.com/boatbomber/TextBoxPlus). uses a modified version with autocomplete (plugin usage)
* [pythonlua](https://github.com/dmitrii-eremin/python-lua). this is heavily modified version with flask implementation and compiler changes. (read licenses in [copyright.txt](COPYRIGHTS.txt))
* [seasnake](https://github.com/pybee/seasnake) and sealang. Modified to convert C/C++ to Luau rather than C/C++ to Python 2.7
* [MoonScript](https://github.com/leafo/moonscript). Modified to work with the Roblox API (Lunar).
* [LuauAST](). roblox-pyc uses roblox-ts's LuauAST to generate Luau code. (not used in current versions)
## Building
- `pip install pyinstaller`
- `pyinstaller src/rbxpy.py`
***
21 changes: 0 additions & 21 deletions build.md

This file was deleted.

52 changes: 0 additions & 52 deletions c-docs/introduction.md

This file was deleted.

39 changes: 0 additions & 39 deletions cli-docs/introduction.md

This file was deleted.

33 changes: 0 additions & 33 deletions cli/installation.md

This file was deleted.

Loading

0 comments on commit d2e062e

Please sign in to comment.