Skip to content

Commit

Permalink
1.6.6.3
Browse files Browse the repository at this point in the history
  • Loading branch information
FIRST_NAME LAST_NAME authored and FIRST_NAME LAST_NAME committed Jul 9, 2023
1 parent bd82ead commit c8efbd7
Show file tree
Hide file tree
Showing 65 changed files with 320 additions and 273 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@ Python, C, C++ Compiler for Roblox.

Python 3.13 (dev), C23, C++20 -> Lua(u)

## Changelog:
- Added C, C++ AST (abstract syntax tree), use the cli and it will output AST
- Added automatic variable checking, check which builtin variables are needed
- Added automatic function checking, check which builtin functions are needed
- Reorganized code
- Added more tests
- Cleaned up code
- Did this changelog


## Why did the name get changed to roblox.pyc?
2 reasons:
- It's a python compiler, so it should be named .py**c**
Expand Down
8 changes: 4 additions & 4 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[metadata]
name = roblox-pyc
version = 1.5.6.3
version = 1.6.6.3

[options]
packages = src


[options.entry_points]
console_scripts =
roblox-py = src.robloxpy:typerapp
roblox-c = src.robloxpy:typerapp2
roblox-cpp = src.robloxpy:typerapp3
roblox-py = src.robloxpy:w
roblox-c = src.robloxpy:cw
roblox-cpp = src.robloxpy:cpw
File renamed without changes.
Binary file added src/compiler/__pycache__/__init__.cpython-311.pyc
Binary file not shown.
Binary file not shown.
Binary file added src/compiler/__pycache__/boolopdesc.cpython-311.pyc
Binary file not shown.
Binary file added src/compiler/__pycache__/cmpopdesc.cpython-311.pyc
Binary file not shown.
Binary file not shown.
Binary file added src/compiler/__pycache__/config.cpython-311.pyc
Binary file not shown.
Binary file added src/compiler/__pycache__/context.cpython-311.pyc
Binary file not shown.
Binary file added src/compiler/__pycache__/cpAST.cpython-311.pyc
Binary file not shown.
Binary file not shown.
Binary file added src/compiler/__pycache__/header.cpython-311.pyc
Binary file not shown.
Binary file added src/compiler/__pycache__/loopcounter.cpython-311.pyc
Binary file not shown.
Binary file added src/compiler/__pycache__/luainit.cpython-311.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added src/compiler/__pycache__/unaryopdesc.cpython-311.pyc
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
18 changes: 18 additions & 0 deletions src/compiler/header.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
headertemplate = """
--// Compiled using roblox-pyc \\--
------------------------------------ BUILT IN -------------------------------
local py, builtin = unpack(require(game.ReplicatedStorage["roblox.pyc"])(script).py)
{}
-----------------------------------------------------------------------------
"""

def header(functions):
code = ""
for i in functions:
code += "local "+i+" = builtin."+i+"\n"

#print(code)
return headertemplate.format(code)
File renamed without changes.
Loading

0 comments on commit c8efbd7

Please sign in to comment.