-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
AlphaRunic
committed
Jul 16, 2021
1 parent
b1779f0
commit d0b779d
Showing
12 changed files
with
828 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
## Update 1.1.0 | ||
|
||
- Add string split operator `/` | ||
- Add function union operator `+` | ||
- Fix Queue data structure | ||
- Add lots of LDoc documentation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
using(luay.util) | ||
|
||
function main() | ||
local line = HTML.Newline | ||
|
||
HTML:BeginBlock() | ||
|
||
HTML:BeginBlock() | ||
local headContent = | ||
line() + | ||
HTML:StylesheetLink("styles.css") + | ||
line() | ||
HTML:EndBlock() | ||
|
||
local head = line() + HTML:Head(headContent) | ||
|
||
HTML:BeginBlock() | ||
|
||
HTML:BeginBlock() | ||
local formContent = | ||
line() + | ||
HTML:Input {'type="button"', 'value="Open my Other Document in New Window"', 'onclick="openWindow()"'} + | ||
line() | ||
HTML:EndBlock() | ||
|
||
local bodyContent = | ||
line() + | ||
HTML:H1("My Document") + | ||
line() + | ||
HTML:A("https://document.com", "My Other Document") + | ||
line() + | ||
HTML:P("This document will go over some very important things.") + | ||
line() + | ||
HTML:Script([[ | ||
function openWindow() { | ||
window.open("https://document.com"); | ||
} | ||
]]) + | ||
line() + | ||
HTML:Form(formContent) + | ||
line() | ||
HTML:EndBlock() | ||
|
||
local body = line() + HTML:Body(bodyContent) | ||
|
||
HTML:EndBlock() | ||
local html = HTML:Html(head + body + line()) | ||
|
||
print(html) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<html> | ||
<head> | ||
<link rel="stylesheet" href="styles.css" /> | ||
</head> | ||
<body> | ||
<h1>My Document</h1> | ||
<a href="https://document.com">My Other Document</a> | ||
<p>This document will go over some very important things.</p> | ||
<script> | ||
function openWindow() { | ||
window.open("https://document.com"); | ||
} | ||
</script> | ||
<form> | ||
<input type="button" value="Open my Other Document in New Window" onclick="openWindow()" /> | ||
</form> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
using(luay.std) | ||
|
||
function main() | ||
local q = Queue() | ||
q:Enqueue("lil uzi vert") | ||
q:Enqueue("j cole") | ||
q:Enqueue("smokepurpp") | ||
repr(q) | ||
q:Dequeue() | ||
repr(q) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
---@alias void nil | ||
|
||
require "data" | ||
require "core" | ||
require "util" | ||
|
Oops, something went wrong.