Skip to content

Commit e709eb9

Browse files
author
Jcsab111 (New account)
committed
Initial commit
0 parents  commit e709eb9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

142 files changed

+79537
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
\# 2 Moons Lua 5.5 Compiler
2+
3+
4+
This brings Lua 5.5 to windows with Error highlighting
5+
And stuff
6+
7+

doc/OSIApproved.png

10.2 KB
Loading

doc/contents.html

Lines changed: 715 additions & 0 deletions
Large diffs are not rendered by default.

doc/index.css

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
ul {
2+
list-style-type: none ;
3+
}
4+
5+
ul.contents {
6+
padding: 0 ;
7+
}
8+
9+
table {
10+
border: none ;
11+
border-spacing: 0 ;
12+
border-collapse: collapse ;
13+
}
14+
15+
td {
16+
vertical-align: top ;
17+
padding: 0 ;
18+
text-align: left ;
19+
line-height: 1.25 ;
20+
width: 15% ;
21+
}

doc/logo.png

9.66 KB
Loading

doc/lua.1

Lines changed: 155 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,155 @@
1+
.\" $Id: lua.man,v 1.14 2024/03/18 06:57:32 lhf Exp $
2+
.TH LUA 1 "$Date: 2024/03/18 06:57:32 $"
3+
.SH NAME
4+
lua \- Lua interpreter
5+
.SH SYNOPSIS
6+
.B lua
7+
[
8+
.I options
9+
]
10+
[
11+
.I script
12+
[
13+
.I args
14+
]
15+
]
16+
.SH DESCRIPTION
17+
.B lua
18+
is the standalone Lua interpreter.
19+
It loads and executes Lua programs,
20+
either in textual source form or
21+
in precompiled binary form.
22+
(Precompiled binaries are output by
23+
.BR luac ,
24+
the Lua compiler.)
25+
.B lua
26+
can be used as a batch interpreter and also interactively.
27+
.LP
28+
After handling the
29+
.IR options ,
30+
the Lua program in file
31+
.I script
32+
is loaded and executed.
33+
The
34+
.I args
35+
are available to
36+
.I script
37+
as strings in a global table named
38+
.B arg
39+
and also as arguments to its main function.
40+
When called without arguments,
41+
.B lua
42+
behaves as
43+
.B "lua \-v \-i"
44+
if the standard input is a terminal,
45+
and as
46+
.B "lua \-"
47+
otherwise.
48+
.LP
49+
In interactive mode,
50+
.B lua
51+
prompts the user,
52+
reads lines from the standard input,
53+
and executes them as they are read.
54+
If the line contains an expression,
55+
then the line is evaluated and the result is printed.
56+
If a line does not contain a complete statement,
57+
then a secondary prompt is displayed and
58+
lines are read until a complete statement is formed or
59+
a syntax error is found.
60+
.LP
61+
Before handling command line options and scripts,
62+
.B lua
63+
checks the contents of the environment variables
64+
.B LUA_INIT_5_5
65+
and
66+
.BR LUA_INIT ,
67+
in that order.
68+
If the contents are of the form
69+
.RI '@ filename ',
70+
then
71+
.I filename
72+
is executed.
73+
Otherwise, the contents are assumed to be a Lua statement and is executed.
74+
When
75+
.B LUA_INIT_5_5
76+
is defined,
77+
.B LUA_INIT
78+
is ignored.
79+
.SH OPTIONS
80+
.TP
81+
.BI \-e " stat"
82+
execute statement
83+
.IR stat .
84+
.TP
85+
.B \-i
86+
enter interactive mode after executing
87+
.IR script .
88+
.TP
89+
.BI \-l " mod"
90+
require library
91+
.I mod
92+
into global
93+
.IR mod .
94+
.TP
95+
.BI \-l " g=mod"
96+
require library
97+
.I mod
98+
into global
99+
.IR g .
100+
.TP
101+
.B \-v
102+
show version information.
103+
.TP
104+
.B \-E
105+
ignore environment variables.
106+
.TP
107+
.B \-W
108+
turn warnings on.
109+
.TP
110+
.B \-\-
111+
stop handling options.
112+
.TP
113+
.B \-
114+
stop handling options and execute the standard input as a file.
115+
.SH ENVIRONMENT VARIABLES
116+
The following environment variables affect the execution of
117+
.BR lua .
118+
When defined,
119+
the version-specific variants take priority
120+
and the version-neutral variants are ignored.
121+
.TP
122+
.B LUA_INIT, LUA_INIT_5_5
123+
Code to be executed before command line options and scripts.
124+
.TP
125+
.B LUA_PATH, LUA_PATH_5_5
126+
Initial value of package.path,
127+
the path used by require to search for Lua loaders.
128+
.TP
129+
.B LUA_CPATH, LUA_CPATH_5_5
130+
Initial value of package.cpath,
131+
the path used by require to search for C loaders.
132+
.SH EXIT STATUS
133+
If a script calls os.exit,
134+
then
135+
.B lua
136+
exits with the given exit status.
137+
Otherwise,
138+
.B lua
139+
exits
140+
with EXIT_SUCCESS (0 on POSIX systems) if there were no errors
141+
and
142+
with EXIT_FAILURE (1 on POSIX systems) if there were errors.
143+
Errors raised in interactive mode do not cause exits.
144+
.SH DIAGNOSTICS
145+
Error messages should be self explanatory.
146+
.SH "SEE ALSO"
147+
.BR luac (1)
148+
.br
149+
The documentation at lua.org,
150+
especially section 7 of the reference manual.
151+
.SH AUTHORS
152+
R. Ierusalimschy,
153+
L. H. de Figueiredo,
154+
W. Celes
155+
.\" EOF

doc/lua.css

Lines changed: 162 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,162 @@
1+
html {
2+
background-color: #F8F8F8 ;
3+
}
4+
5+
body {
6+
background-color: #FFFFFF ;
7+
color: #000000 ;
8+
font-family: Helvetica, Arial, sans-serif ;
9+
text-align: justify ;
10+
line-height: 1.25 ;
11+
margin: 16px auto ;
12+
padding: 32px ;
13+
border: solid #ccc 1px ;
14+
border-radius: 20px ;
15+
max-width: 70em ;
16+
width: 90% ;
17+
}
18+
19+
h1, h2, h3, h4 {
20+
color: #000080 ;
21+
font-family: Verdana, Geneva, sans-serif ;
22+
font-weight: normal ;
23+
font-style: normal ;
24+
text-align: left ;
25+
}
26+
27+
h1 {
28+
font-size: 28pt ;
29+
}
30+
31+
h1 img {
32+
vertical-align: text-bottom ;
33+
}
34+
35+
h2:before {
36+
content: "\2756" ;
37+
padding-right: 0.5em ;
38+
}
39+
40+
a {
41+
text-decoration: none ;
42+
}
43+
44+
a:link {
45+
color: #000080 ;
46+
}
47+
48+
a:link:hover, a:visited:hover {
49+
background-color: #D0D0FF ;
50+
color: #000080 ;
51+
border-radius: 4px ;
52+
}
53+
54+
a:link:active, a:visited:active {
55+
color: #FF0000 ;
56+
}
57+
58+
div.menubar {
59+
padding-bottom: 0.5em ;
60+
}
61+
62+
p.menubar {
63+
margin-left: 2.5em ;
64+
}
65+
66+
.menubar a:hover {
67+
margin: -3px -3px -3px -3px ;
68+
padding: 3px 3px 3px 3px ;
69+
border-radius: 4px ;
70+
}
71+
72+
:target {
73+
background-color: #F0F0F0 ;
74+
margin: -8px ;
75+
padding: 8px ;
76+
border-radius: 8px ;
77+
outline: none ;
78+
}
79+
80+
hr {
81+
display: none ;
82+
}
83+
84+
table hr {
85+
background-color: #a0a0a0 ;
86+
color: #a0a0a0 ;
87+
border: 0 ;
88+
height: 1px ;
89+
display: block ;
90+
}
91+
92+
.footer {
93+
color: gray ;
94+
font-size: x-small ;
95+
text-transform: lowercase ;
96+
}
97+
98+
input[type=text] {
99+
border: solid #a0a0a0 2px ;
100+
border-radius: 2em ;
101+
background-image: url('images/search.png') ;
102+
background-repeat: no-repeat ;
103+
background-position: 4px center ;
104+
padding-left: 20px ;
105+
height: 2em ;
106+
}
107+
108+
pre.session {
109+
background-color: #F8F8F8 ;
110+
padding: 1em ;
111+
border-radius: 8px ;
112+
}
113+
114+
table {
115+
border: none ;
116+
border-spacing: 0 ;
117+
border-collapse: collapse ;
118+
}
119+
120+
td {
121+
padding: 0 ;
122+
margin: 0 ;
123+
}
124+
125+
td.gutter {
126+
width: 4% ;
127+
}
128+
129+
table.columns td {
130+
vertical-align: top ;
131+
padding-bottom: 1em ;
132+
text-align: justify ;
133+
line-height: 1.25 ;
134+
}
135+
136+
table.book td {
137+
vertical-align: top ;
138+
}
139+
140+
table.book td.cover {
141+
padding-right: 1em ;
142+
}
143+
144+
table.book img {
145+
border: solid #000080 1px ;
146+
border-radius: 2px ;
147+
}
148+
149+
table.book span {
150+
font-size: small ;
151+
text-align: left ;
152+
display: block ;
153+
margin-top: 0.25em ;
154+
}
155+
156+
p.logos a:link:hover, p.logos a:visited:hover {
157+
background-color: inherit ;
158+
}
159+
160+
img {
161+
background-color: white ;
162+
}

0 commit comments

Comments
 (0)