Last active
August 19, 2018 08:40
-
-
Save CapsAdmin/b51ef5a02671d1ef9c5846718c393ea6 to your computer and use it in GitHub Desktop.
tokenzier/lexer/transpiler
This file contains hidden or 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
local a = a+i < b/2+1 | |
local b = 5+x^2*8 | |
local a = (1+2)+(3+4) | |
local a = a+i < b/2+1 | |
local b = 5+x^2*8 | |
local a =a < y and y <= z | |
local a =-x^2 | |
local a =x^y^z | |
local a = 5+x^2*8 | |
local a = x < y and x*x or y*y | |
local a = 1+2+3+4 | |
local a = (1+2)+(3+4) | |
local a = (1+(2)+(3)+4) | |
local a = (1+(2+3)+4) | |
local a,b,c = 1,3+2^3,(3+2)^3 | |
local a = 5+(1+2+3+4) | |
local b = function(a,b,c) local awd = awd*5 end | |
local function test() | |
local a = b | |
lol = true | |
adwawd = ad | |
a,b,c=e,f,g | |
end | |
do | |
local a = 1 | |
do | |
local a = 2 | |
local function asdf() | |
for i = 1, 10 do | |
local i = i + 2 | |
if i < 5 then | |
local a = 1 | |
elseif i > 5 then | |
local a = 2 | |
elseif i > 1 then | |
local a = 2 | |
else | |
local a = 4 | |
end | |
end | |
local i = 0 | |
while (function(foo) local foo = foo + bar return foo end) or 1 do | |
i = i + 1 | |
if i > 10 then | |
end | |
end | |
end | |
end | |
end | |
foo.bar[1+2]["3"][four].five = 1 | |
a = 1 | |
b = 2 | |
foo.bar[1+2]["3"][four].waddwa(a,b,c + 2 + 1 + 22+2 +2) | |
a.lol,b,c = 1,2,3 | |
lol:foo(awdadwwad, awdwadaw, adadw, 2+11+231+23+1+23) | |
while true do | |
local a = 1 | |
if true then a = 1 elseif true then b= 2 elseif true and false then c = 3 end | |
local a = 2 | |
asad(adawd+123,21235,325,235,253) | |
end | |
if true then | |
a = 1 | |
elseif true then | |
b= 2 | |
elseif true and false then | |
c = 3 | |
end |
This file contains hidden or 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
⸢local⸥ ⸢a⸥ ⸢=⸥ ⸢a⸥⸢+⸥⸢i⸥ ⸢<⸥ ⸢b⸥⸢/⸥⸢2⸥⸢+⸥⸢1⸥ | |
⸢local⸥ ⸢b⸥ ⸢=⸥ ⸢5⸥⸢+⸥⸢x⸥⸢^⸥⸢2⸥⸢*⸥⸢8⸥ | |
⸢local⸥ ⸢a⸥ ⸢=⸥ ⸢(⸥⸢1⸥⸢+⸥⸢2⸥⸢)⸥⸢+⸥⸢(⸥⸢3⸥⸢+⸥⸢4⸥⸢)⸥ | |
⸢local⸥ ⸢a⸥ ⸢=⸥ ⸢a⸥⸢+⸥⸢i⸥ ⸢<⸥ ⸢b⸥⸢/⸥⸢2⸥⸢+⸥⸢1⸥ | |
⸢local⸥ ⸢b⸥ ⸢=⸥ ⸢5⸥⸢+⸥⸢x⸥⸢^⸥⸢2⸥⸢*⸥⸢8⸥ | |
⸢local⸥ ⸢a⸥ ⸢=⸥⸢a⸥ ⸢<⸥ ⸢y⸥ ⸢and⸥ ⸢y⸥ ⸢<=⸥ ⸢z⸥ | |
⸢local⸥ ⸢a⸥ ⸢=⸥⸢-⸥⸢x⸥⸢^⸥⸢2⸥ | |
⸢local⸥ ⸢a⸥ ⸢=⸥⸢x⸥⸢^⸥⸢y⸥⸢^⸥⸢z⸥ | |
⸢local⸥ ⸢a⸥ ⸢=⸥ ⸢5⸥⸢+⸥⸢x⸥⸢^⸥⸢2⸥⸢*⸥⸢8⸥ | |
⸢local⸥ ⸢a⸥ ⸢=⸥ ⸢x⸥ ⸢<⸥ ⸢y⸥ ⸢and⸥ ⸢x⸥⸢*⸥⸢x⸥ ⸢or⸥ ⸢y⸥⸢*⸥⸢y⸥ | |
⸢local⸥ ⸢a⸥ ⸢=⸥ ⸢1⸥⸢+⸥⸢2⸥⸢+⸥⸢3⸥⸢+⸥⸢4⸥ | |
⸢local⸥ ⸢a⸥ ⸢=⸥ ⸢(⸥⸢1⸥⸢+⸥⸢2⸥⸢)⸥⸢+⸥⸢(⸥⸢3⸥⸢+⸥⸢4⸥⸢)⸥ | |
⸢local⸥ ⸢a⸥ ⸢=⸥ ⸢(⸥⸢1⸥⸢+⸥⸢(⸥⸢2⸥⸢)⸥⸢+⸥⸢(⸥⸢3⸥⸢)⸥⸢+⸥⸢4⸥⸢)⸥ | |
⸢local⸥ ⸢a⸥ ⸢=⸥ ⸢(⸥⸢1⸥⸢+⸥⸢(⸥⸢2⸥⸢+⸥⸢3⸥⸢)⸥⸢+⸥⸢4⸥⸢)⸥ | |
⸢local⸥ ⸢a⸥⸢,⸥⸢b⸥⸢,⸥⸢c⸥ ⸢=⸥ ⸢1⸥⸢,⸥⸢3⸥⸢+⸥⸢2⸥⸢^⸥⸢3⸥⸢,⸥⸢(⸥⸢3⸥⸢+⸥⸢2⸥⸢)⸥⸢^⸥⸢3⸥ | |
⸢local⸥ ⸢a⸥ ⸢=⸥ ⸢5⸥⸢+⸥⸢(⸥⸢1⸥⸢+⸥⸢2⸥⸢+⸥⸢3⸥⸢+⸥⸢4⸥⸢)⸥ | |
⸢local⸥ ⸢b⸥ ⸢=⸥ ⸢function⸥⸢(⸥⸢a⸥⸢,⸥⸢b⸥⸢,⸥⸢c⸥⸢)⸥ ⸢local⸥ ⸢awd⸥ ⸢=⸥ ⸢awd⸥⸢*⸥⸢5⸥ ⸢end⸥ | |
⸢local⸥ ⸢function⸥ ⸢test⸥⸢(⸥⸢)⸥ | |
⸢local⸥ ⸢a⸥ ⸢=⸥ ⸢b⸥ | |
⸢lol⸥ ⸢=⸥ ⸢true⸥ | |
⸢adwawd⸥ ⸢=⸥ ⸢ad⸥ | |
⸢a⸥⸢,⸥⸢b⸥⸢,⸥⸢c⸥⸢=⸥⸢e⸥⸢,⸥⸢f⸥⸢,⸥⸢g⸥ | |
⸢end⸥ | |
⸢do⸥ | |
⸢local⸥ ⸢a⸥ ⸢=⸥ ⸢1⸥ | |
⸢do⸥ | |
⸢local⸥ ⸢a⸥ ⸢=⸥ ⸢2⸥ | |
⸢local⸥ ⸢function⸥ ⸢asdf⸥⸢(⸥⸢)⸥ | |
⸢for⸥ ⸢i⸥ ⸢=⸥ ⸢1⸥⸢,⸥ ⸢10⸥ ⸢do⸥ | |
⸢local⸥ ⸢i⸥ ⸢=⸥ ⸢i⸥ ⸢+⸥ ⸢2⸥ | |
⸢if⸥ ⸢i⸥ ⸢<⸥ ⸢5⸥ ⸢then⸥ | |
⸢local⸥ ⸢a⸥ ⸢=⸥ ⸢1⸥ | |
⸢elseif⸥ ⸢i⸥ ⸢>⸥ ⸢5⸥ ⸢then⸥ | |
⸢local⸥ ⸢a⸥ ⸢=⸥ ⸢2⸥ | |
⸢elseif⸥ ⸢i⸥ ⸢>⸥ ⸢1⸥ ⸢then⸥ | |
⸢local⸥ ⸢a⸥ ⸢=⸥ ⸢2⸥ | |
⸢else⸥ | |
⸢local⸥ ⸢a⸥ ⸢=⸥ ⸢4⸥ | |
⸢end⸥ | |
⸢end⸥ | |
⸢local⸥ ⸢i⸥ ⸢=⸥ ⸢0⸥ | |
⸢while⸥ ⸢(⸥⸢function⸥⸢(⸥⸢foo⸥⸢)⸥ ⸢local⸥ ⸢foo⸥ ⸢=⸥ ⸢foo⸥ ⸢+⸥ ⸢bar⸥ ⸢return⸥ ⸢foo⸥ ⸢end⸥⸢)⸥ ⸢or⸥ ⸢1⸥ ⸢do⸥ | |
⸢i⸥ ⸢=⸥ ⸢i⸥ ⸢+⸥ ⸢1⸥ | |
⸢if⸥ ⸢i⸥ ⸢>⸥ ⸢10⸥ ⸢then⸥ | |
⸢end⸥ | |
⸢end⸥ | |
⸢end⸥ | |
⸢end⸥ | |
⸢end⸥ | |
⸢foo⸥⸢.⸥⸢bar⸥⸢[⸥⸢1⸥⸢+⸥⸢2⸥⸢]⸥⸢[⸥⸢"3"⸥⸢]⸥⸢[⸥⸢four⸥⸢]⸥⸢.⸥⸢five⸥ ⸢=⸥ ⸢1⸥ | |
⸢a⸥ ⸢=⸥ ⸢1⸥ | |
⸢b⸥ ⸢=⸥ ⸢2⸥ | |
⸢foo⸥⸢.⸥⸢bar⸥⸢[⸥⸢1⸥⸢+⸥⸢2⸥⸢]⸥⸢[⸥⸢"3"⸥⸢]⸥⸢[⸥⸢four⸥⸢]⸥⸢.⸥⸢waddwa⸥⸢(⸥⸢a⸥⸢,⸥⸢b⸥⸢,⸥⸢c⸥ ⸢+⸥ ⸢2⸥ ⸢+⸥ ⸢1⸥ ⸢+⸥ ⸢22⸥⸢+⸥⸢2⸥ ⸢+⸥⸢2⸥⸢)⸥ | |
⸢a⸥⸢.⸥⸢lol⸥⸢,⸥⸢b⸥⸢,⸥⸢c⸥ ⸢=⸥ ⸢1⸥⸢,⸥⸢2⸥⸢,⸥⸢3⸥ | |
⸢lol⸥⸢:⸥⸢foo⸥⸢(⸥⸢awdadwwad⸥⸢,⸥ ⸢awdwadaw⸥⸢,⸥ ⸢adadw⸥⸢,⸥ ⸢2⸥⸢+⸥⸢11⸥⸢+⸥⸢231⸥⸢+⸥⸢23⸥⸢+⸥⸢1⸥⸢+⸥⸢23⸥⸢)⸥ | |
⸢while⸥ ⸢true⸥ ⸢do⸥ | |
⸢local⸥ ⸢a⸥ ⸢=⸥ ⸢1⸥ | |
⸢if⸥ ⸢true⸥ ⸢then⸥ ⸢a⸥ ⸢=⸥ ⸢1⸥ ⸢elseif⸥ ⸢true⸥ ⸢then⸥ ⸢b⸥⸢=⸥ ⸢2⸥ ⸢elseif⸥ ⸢true⸥ ⸢and⸥ ⸢false⸥ ⸢then⸥ ⸢c⸥ ⸢=⸥ ⸢3⸥ ⸢end⸥ | |
⸢local⸥ ⸢a⸥ ⸢=⸥ ⸢2⸥ | |
⸢asad⸥⸢(⸥⸢adawd⸥⸢+⸥⸢123⸥⸢,⸥⸢21235⸥⸢,⸥⸢325⸥⸢,⸥⸢235⸥⸢,⸥⸢253⸥⸢)⸥ | |
⸢end⸥ | |
⸢if⸥ ⸢true⸥ ⸢then⸥ | |
⸢a⸥ ⸢=⸥ ⸢1⸥ | |
⸢elseif⸥ ⸢true⸥ ⸢then⸥ | |
⸢b⸥⸢=⸥ ⸢2⸥ | |
⸢elseif⸥ ⸢true⸥ ⸢and⸥ ⸢false⸥ ⸢then⸥ | |
⸢c⸥ ⸢=⸥ ⸢3⸥ | |
⸢end⸥ |
This file contains hidden or 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
local a = ((a+i)<((b/2)+1)) | |
local b = (5+((x^2)*8)) | |
local a = ((1+2)+(3+4)) | |
local a = ((a+i)<((b/2)+1)) | |
local b = (5+((x^2)*8)) | |
local a = ((a<y) and (y<=z)) | |
local a = -(x^2) | |
local a = (x^(y^z)) | |
local a = (5+((x^2)*8)) | |
local a = (((x<y) and (x*x)) or (y*y)) | |
local a = (((1+2)+3)+4) | |
local a = ((1+2)+(3+4)) | |
local a = (((1+2)+3)+4) | |
local a = ((1+(2+3))+4) | |
local a, b, c = 1, (3+(2^3)), ((3+2)^3) | |
local a = (5+(((1+2)+3)+4)) | |
local b = (function(a, b, c) local awd = (awd*5) end) | |
local function test() | |
local a = b | |
lol = true | |
adwawd = ad | |
a, b, c = e, f, g | |
end | |
do | |
local a = 1 | |
do | |
local a = 2 | |
local function asdf() | |
for i = 1, 10 do | |
local i = (i+2) | |
if (i<5) then | |
local a = 1 | |
elseif (i>5) then | |
local a = 2 | |
elseif (i>1) then | |
local a = 2 | |
else | |
local a = 4 | |
end | |
end | |
local i = 0 | |
while ((function(foo) local foo = (foo+bar) return foo end) or 1) do | |
i = (i+1) | |
if (i>10) then | |
end | |
end | |
end | |
end | |
end | |
foo.bar[(1+2)]["3"][four].five = 1 | |
a = 1 | |
b = 2 | |
foo.bar[(1+2)]["3"][four].waddwa(a, b, (((((c+2)+1)+22)+2)+2)) | |
a.lol, b, c = 1, 2, 3 | |
lol:foo(awdadwwad, awdwadaw, adadw, (((((2+11)+231)+23)+1)+23)) | |
while true do | |
local a = 1 | |
if true then | |
a = 1 | |
elseif true then | |
b = 2 | |
elseif ( true and false ) then | |
c = 3 | |
end | |
local a = 2 | |
asad((adawd+123), 21235, 325, 235, 253) | |
end | |
if true then | |
a = 1 | |
elseif true then | |
b = 2 | |
elseif ( true and false ) then | |
c = 3 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment