SuperCode IDE
Lua 5.4 IDE Hub/Lua 5.4 Bitwise, <close> & Multi-File
4.9 ★ GENUINE NATIVE LUA 5.4.7 · 64-BIT BITWISE · <CONST> & <CLOSE> · MULTI-FOLDER

True Native Lua 5.4.7 vs. Outdated Lua 5.2 Mobile Apps.

Most Lua apps on Google Play wrap abandoned Java LuaJ 5.2 engines that choke on modern syntax. SuperCode executes genuine native Lua 5.4.7 offline — unlocking 64-bit bitwise ops (& | ~ << >>), // integer division, <const> / <close>, and zero-config multi-folder require().

5.4.7
True Native VM
64-Bit
// & Bitwise Ops
<close>
Scoped RAII
6Dirs
Auto package.path
01 MODERN LUA 5.4.7 SYNTAX & MULTI-FOLDER PACKAGE WORKBENCH
64-Bit Bitwise & // · <const> & <close> RAII · Multi-Folder Entry Routing
lua54-modern-pkg/bitwise_64.lua — 64-Bit Bitwise, // & string.pack
Interactive Console Output
Ready
Genuine Lua 5.4.7 · 64-Bit
UTF-8 LF Ln 7, Col 1
02 CORE CAPABILITIES

Every Modern Lua 5.3 & 5.4 Language Advancement, Offline

Write contemporary, textbook-accurate Lua 5.4 code and multi-directory packages without syntax-error workarounds.

02.1

Native 64-Bit Integers, // Division & Bitwise Operators

Manipulate bitmasks, flags, hashes, and tile coordinates directly with &, |, ~ (XOR/NOT), <<, >>, and // integer floor division — backed by exact 64-bit signed integers rather than float approximations.

& | ~ << >> · // Floor Division · 64-Bit math.type()
02.2

Compile-Time <const> & Scoped <close> Cleanup

Enforce immutable locals at compile time with <const> and bind deterministic __close metamethods via <close> so open files, locks, and SQLite statements release automatically on scope exit or error.

local x <const> · local f <close> · __close RAII
02.3

Binary string.pack / unpack & Built-In utf8

Encode and decode binary structs with endianness specifiers via string.pack, string.unpack, and string.packsize, and iterate multilingual Unicode strings safely with utf8.codes, utf8.len, and utf8.char.

string.pack / unpack · utf8.codes · Generational GC
02.4

Auto-Wired package.path Across 6 Standard Subfolders

SuperCode automatically configures package.path for your workspace root plus src/, lib/, modules/, core/, and utils/ (both ?.lua and ?/init.lua), resolving saved files and unsaved editor tabs alike.

src/ · lib/ · modules/ · core/ · utils/ · ?/init.lua
02.5

Smart main.lua / init.lua Entry Arbitration

Editing a submodule that ends with return M? Tap Run ▶ right inside core/codec.lua without switching tabs — SuperCode detects your project's main.lua or init.lua entry script and launches it seamlessly.

Run From Any Module Tab · Auto Entry Detection
02.6

1:1 Clickable Tracebacks & Generational GC

Run under Lua 5.4.7's low-latency generational garbage collector with sub-millisecond cold starts and clickable stack traces that jump straight to the exact file and line across multi-folder projects.

Cross-Module Stack Traces · ~400µs Cold Start
Built for Phones, Foldables & Tablets · Lightweight 45 MB Lua 5.4 IDE Hub
03 STEP-BY-STEP WORKFLOW

How to Structure Multi-File Lua 5.4 Packages on Android

Scale cleanly from a single script to a structured multi-directory Lua codebase.

STEP 01 Explorer -> New Folder

Create Modular Directories (src/, lib/, core/)

Place your entry point in main.lua and organize reusable modules into src/, lib/, modules/, core/, or utils/ — zero LUA_PATH tweaking.

STEP 02 Lua 5.4 Syntax

Author 64-Bit Bitwise, <const>, and <close> Code

Use modern //, >>, &, <const>, and <close> constructs with live Error Radar syntax checks and offline Lua formatting.

STEP 03 Run ▶ Inside Any Tab

Execute From Either main.lua or a Submodule

Press Run even while editing a return M library file — entry arbitration runs main.lua automatically including unsaved edits.

STEP 04 Visual Git -> Push

Version & Publish Clean Lua Packages

Review diffs across your module tree in Visual Git and push directly to GitHub, GitLab, or a remote SFTP host.

Genuine Lua 5.4.7 C Runtime · Supports ?.lua & ?/init.lua · Unsaved Buffer Sync App Guide
04 CAPABILITY MATRIX

Native Lua 5.4.7 (SuperCode) vs. Legacy LuaJ 5.2 Android Apps

SuperCode's Native Lua 5.4.7 Interpreter outperforms legacy LuaJ 5.2 Android apps by executing genuine 64-bit Lua 5.4 offline in ~400 microseconds. It supports integer floor division (//), bitwise operators, <const> and <close> variables, string.pack, utf8, and multi-folder require() entry routing.

LUA 5.4.7 VS. LEGACY MOBILE LUA INTERPRETERS
Language Feature SuperCode (Native Lua 5.4.7) Java LuaJ 5.2 Android Apps Single-File Web Demos Desktop Lua 5.4
Bitwise & // Division Native & | ~ << >> and 64-Bit // Syntax Error (Requires bit32) Online only Supported
<const> & <close> RAII Full Lua 5.4 Support (__close) Not supported Varies by site Supported
Binary Pack & UTF-8 Built-In string.pack/unpack + utf8 Missing Online only Supported
Multi-Folder require() Auto-Wires root, src/, lib/, core/, utils/ Breaks on relative paths Single file only Manual LUA_PATH
Run Inside Module Tab Auto-Arbitrates main.lua / init.lua Runs module & prints nothing Not applicable Manual CLI target
Built for Phones, Foldables & Tablets · Lightweight 45 MB Google Play
05 QUESTIONS & ANSWERS

Frequently Asked Questions

Questions about Lua 5.4 bitwise operators, `<close>` variables, and multi-folder `require()` on Android.

Why do `//` and `&` throw syntax errors in other Android Lua apps?
Many older mobile Lua apps rely on LuaJ, a Java port frozen around Lua 5.2 before native 64-bit integers, `//` floor division, and bitwise operators were introduced in Lua 5.3/5.4. SuperCode runs genuine native Lua 5.4.7.
How does multi-file `require()` work without setting `LUA_PATH`?
SuperCode automatically configures `package.path` to search your project root as well as `src/`, `lib/`, `modules/`, `core/`, and `utils/` for both `?.lua` and `?/init.lua` — and even syncs unsaved open tabs before running.
What happens if I press Run while editing `lib/math_ext.lua` instead of `main.lua`?
If the active file returns a module table (`return M`) and a `main.lua` or `init.lua` exists in your project root, SuperCode automatically runs the entry script so you don't have to switch tabs back and forth.
Does Lua 5.4 `<close>` work if an error is raised inside a block?
Yes. Just like standard desktop Lua 5.4.7, any local variable marked `<close>` invokes its metatable's `__close(self, err)` metamethod deterministically whether the block exits normally or unwinds via `error()`.
06 LUA 5.4, GAME LOGIC & BUILT-IN MODULES GUIDES

Complete Lua 5.4.7 IDE Documentation Suite

Navigate between the main Offline Lua 5.4 IDE hub and all 5 specialized Lua scripting guides.

LUA-HUB Lua 5.4.7 · 11+ Mods · Pillar Hub

Offline Lua 5.4.7 Studio Overview

Main overview of SuperCode's native ~400µs Lua 5.4.7 engine, 11+ built-in offline modules, multi-file require(), and . vs : AST completion.

lua-ide Open Guide →
LUA-01 Entity OOP · Coroutines · ~400µs

Game Scripting, Metatables & Coroutines

Prototype RPG state machines, coroutines, and metatable OOP classes offline for Luau/Roblox, Love2D, and embedded game engines.

lua-game-scripting-metatables-oop Open Guide →
LUA-02 cjson · lsqlite3 · lfs · crypto

11+ Built-In Modules (cjson, lsqlite3, lfs)

Require cjson, lsqlite3, lfs (LuaFileSystem), crypto/sha2, regex, base64, socket.http, and inspect out of the box with zero luarocks setup.

lua-builtin-modules-cjson-sqlite Open Guide →
LUA-03 64-Bit & | << // · <const>/<close>

Lua 5.4 Bitwise, <close> & Multi-File

Use true Lua 5.4 64-bit bitwise operators, integer floor division //, <const>/<close> variables, utf8, and multi-folder require() packages.

lua-54-bitwise-close-multifile Viewing Guide
LUA-04 8 Lua Scripts · . vs : AST · PDF

Learn Lua Offline on Android

Master Lua tables, closures, and pattern matching offline with 8 runnable templates, . vs : AST autocomplete, Lua formatter, and PDF export.

learn-lua-offline-android Open Guide →
LUA-05 crypto · regex · socket.http · lfs

Crypto, Regex, HTTP & File Automation

Automate Android tasks in microseconds with native Lua 5.4.7 backed by BoringSSL crypto/sha2, ICU Unicode regex, OkHttp socket.http (1MB OOM guard), lfs filesystem ops, and 1-tap formatting.

lua-android-crypto-regex-http-automation Open Guide →
6 Interconnected Lua 5.4.7 Guides · Built-In cjson, lfs, lsqlite3, crypto & socket Lua 5.4 IDE Hub