Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lua program format #39

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions File Formats/Code/Lua.md

This file was deleted.

19 changes: 19 additions & 0 deletions File Formats/Lua/Program.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# *COS 2:* Lua Program

## Quick information

| Information | |
| ----------- | ------------------------- |
| Type | Lua Program |
| MIME | `lua/program` |
| Extensions | `.prg`, `.lua` *See '.lua extension'*|

## Technical details

*This format is based upon [plain text](/File%20Formats/Documents/Plain%20Text.md) and as such technical details that apply to plain text also apply to this format.*

A Lua program file *must* contain valid Lua code which will immediately execute code upon being run, rather than simply returning data or loading functions. There is no requirement for a 'program' to have any user interaction or utilise the screen, but to simply *run* code rather than *load* it.

### Note: Usage of `.lua` extension

A file with the `.lua` extension by default should be assumed to be a Lua program, not any other type of Lua file. However, you should never use the `.lua` extension when creating new files unless the user manually specifies it.