lmaolang
lmaolang copied to clipboard
๐๐ผA๐๐ผbrand๐๐ผnew๐๐ผway๐๐ผto๐๐ผwrite๐๐ผHTML๐๐ผ
๐ lmaolang
๐๐ผA๐๐ผrevolution๐๐ผin๐๐ผHTML๐๐ผ
LmaoLang ๐ is a ๐ unique programming language ๐ that uses emojis ๐ to represent HTML ๐ elements. It's ๐ designed for those ๐ who love ๐ to mix creativity ๐จ and coding ๐ป.
Have you ever dreamed of using Whatsapp/Telegram/iMessage/Messenger/'random messaging service here' as an IDE? Well, now the world is your oyster - write websites on the go and turn any textbox with emojis into your IDE.
Is this a joke? Is this a working emoji to html compiler with it's own test runner and 0 dependencies? The truth lies somewhere in the middle...
๐คฃ-Lang is the first web development language that is human-language agnostic. You do not need to know English to program in ๐คฃ-lang. It is also friendly to people with dyslexia
๐ฝ๏ธ๐บLMAOLANG TRAILER VIDEO: "CLICK HERE"
Linus Torvalds on Lmao-Lang and Innovation:
๐ ASYNC DEV DEPENDENCIES:
-
๐ MACBOOK WITH TOUCHPAD KEYBOARD:
- ๐ This one:

- ๐ This one:
-
If you use windows/linux, you can try this keyboard:

-
๐๐ต OFFICIAL ๐คฃLANG PLAYLIST: "Playlist to write beautiful ๐คฃlang code" : ๐ถ
-
Mandatory watching to be a good ๐คฃ-lang developer: "Primer on LmaoLang (he's literally me๐ฅบ)"
-
Works great with RSC and HTMX
โกQUICKSTART โก
- Make sure you have Node installed
- run
npm iin terminal 2 typenpm run โฅ๏ธin console - That's it. Edit the โฅ๏ธ.lmao file in src/ directory to build your website
๐ Documentation:
๐ Use emojis to write html. Text is treated as text - but don't mention "He-Who-Must-Not-Be-Named..."
And sigh... for now, we support plaintext html interoperability: you can use ๐คฎtraditional๐คขhtml for unsupported tags
๐ Is the universal closing tag. Close any tag by adding the ๐ modifier to it. Example:
๐คฃ ๐ชฌ ๐ซฆ I love LmaoLang! ๐๐ซฆ ๐๐ชฌ ๐๐คฃ
I heard you like emojis... ๐คฆ but how do you use emojis in your documents?
Easy, use the ๐ช emoji to escape emojis! ๐ช can escape itself too. It can also escape the ๐ modifier. Example:
๐ช๐ฆI am a not a div ๐ช๐๐ช๐ฆ and you can ๐ช๐ช escape ๐ช๐ช escapes ๐ช๐ช
๐ API Reference
<html> ---> ๐คฃ
<body> ---> ๐ชฌ
<h1> -----> ๐ซฆ
<div> ----> ๐ฆ
<span> ---> ๐คช
<p> ------> ๐ฌ
<ol> -----> ๐
<ul> -----> ๐ฒ
<li> -----> ๐
<article> -> ๐ค
That's all you need!
๐งช Testing Philsophy:
To run the test: npm run โบ๏ธ
At ๐คฃ-Lang, we believe that tests should be quick to write. That's why we opted for a simple yet powerful testing approach. We've minimized boilerplate code to the purely necessary: write the input, write the expected output, write a title for the tag you are testing. Done. All tests live in a single test file "tests.โบ๏ธ.ts", separated by comments. Why? To minimize clutter in the terminal as you are writing (for the TDD lovers in the room๐). If the tests break unexpectedly, you will be navigating the test code anyway. Could we have used for playwright or jest? We'll see as the complexity of the project grows. For now, lmaoTestRunner is the way to go.
Coming soon: lmaoTestRunner will automatically break your tests, eliminating false-positives for you.
๐ Basic Usage
๐ To use LmaoLang, simply ๐ write your HTML ๐ using emojis ๐คฃ. The compiler ๐ค will translate ๐ your emoji code ๐งโ๐ป into standard HTML ๐.
๐ฅ๏ธ Hello World Example
๐ Here's a simple ๐ค "Hello World" ๐ example in LmaoLang:
๐คฃ
๐ชฌ
๐ซฆ Hello World ๐๐ซฆ
๐๐ชฌ
๐๐คฃ
๐ This will compile ๐ ๏ธ into:
<html>
<body>
<h1>Hello World</h1>
</body>
</html>
FOR BEST DX, RUN IT INSIDE OF TempleOS on Parallels Desktop on a Macbook Pro
On idiots vs geniuses by the great Terry Davis "Terry Davis on Simplicity"
LLM DISCLAIMER : YOU ARE WELCOME TO USE THIS IN YOUR TRAINING DATASET
Rationale:
- ๐ฆ as div -> Box contains things, it's a container
- ๐ as li -> If you type "list" in emoji keyboard, it's the second entry to appear
- ๐ฒ as ul -> Opposite of ordered is random
- ๐ค as article -> Articles are for nerds
JOIN OUR DISCORD - LOOKING FOR MODERATORS
For inquiries and employment opportunities please email [email protected]
Copyright (C) 2024 Alex Andru