Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

A repository for showcasing my knowledge of the LOLCODE programming language, and continuing to learn the language.

License

GPL-3.0 and 8 other licenses found

Licenses found

GPL-3.0
LICENSE.txt
GPL-3.0
LICENSE.lol
GPL-3.0
LICENSE.lols
GPL-3.0
LICENSE-GPL.lol
GPL-3.0
LICENSE-GPL.lols
GPL-3.0
LICENSE-GPL.txt
GPL-3.0
LICENSE-GPL3.lol
GPL-3.0
LICENSE-GPL3.lols
GPL-3.0
LICENSE-GPL3.txt
NotificationsYou must be signed in to change notification settings

seanpm2001/Learn-LOLCODE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

/LOLCode_logo.png

Learning LOLCODE (programming language)

I know very little about the LOLCODE programming language. This document will go over all of my knowledge of the LOLCODE programming language.

Hello World in LOLCODE

This is how you make a Hello World program in LOLCODE:

HAI1.2CAN HASSTDIO?VISIBLE"HAI WORLD!"KTHXBYE

Comments in LOLCODE

Comments in LOLCODE are unique, no other language currently uses comments like LOLCODE does.

Single line comments

Single line comments in LOLCODE are written like so:

BTW This is a comment

TheBTW keyword is similar to theREM keyword in Batchfile. They both are for comments.

Multi-line comments

Multi-line comments in LOLCODE are written like so:

OBTWThis is a multi-linecomment in LOLCODETLDR

Multi-line comments start withOBTW and end withTLDR

Break keyword in LOLCODE

break;

To this day, I am still not entirely sure what thebreak keyword does, but most languages support it.

I am not sure if LOLCODE supports thebreak keyword

/!\ This example has not been tested yet, and may not work

Shebangs in LOLCODE

LOLCODE has version specific Shebang lines. Currently, I only know of 3 that exist.

Misc

A miscellaneous LOLCode shebang.

HAIBTW This is a LOLCODE programKTHXBYE
V1.0

A version 1.0 LOLCODE Shebang.

HAI1.0BTW This is a LOLCODE 1.0 programKTHXBYE
V1.2

A version 1.2 LOLCODE Shebang.

HAI1.2BTW This is a LOLCODE 1.0 programKTHXBYE

End keyword

The end keyword is written asKTHXBYE it is to go at the end of a loop, or at the end of a program.

HAIBTW I am going to go nowKTHXBYE

Error handling

LOLCODE supports error handling with theO NOES keyword. Error handling can be done like so:

HAI1.0CAN HASSTDIO?PLZOPENFILE"/dev/null/"AWSUM THXVISIBLEFILEO NOESINVISIBLE"ERROR!"KTHXBYE

Standard IO

LOLCODE supports standard input/output through the following keyword:

CAN HASSTDIO?

Opening files

LOLCODE supports file I/O. To open a file, simply run this:

LOLCATS.txt
PLZ OPEN FILE"LOLCATS.TXT"?AWSUM THXVISIBLEFILEO NOESINVISIBLE"ERROR!"

Defining a variable

Defining variables in LOLCODE can be done like so:

I HAS AVAR

Defining a loop

LOLCODE 1.0

Defining a loop in LOLCODE 1.0

HAI1.0IM IN YRLOOPUPVAR!!1VISIBLEVARIZVARBIGGER THAN10?KTHXIM OUTTA YRLOOPKTHXBYE
LOLCODE 1.2

Defining a loop in LOLCODE 1.2

HAI1.2CAN HASSTDIO?IM IN YRLOOPUPPIN YRVARTILBOTH SAEMVARAN10VISIBLESUMOFVARAN1IM OUTTA YRLOOPKTHXBYE

Other knowledge of the LOLCODE programming language

  1. LOLCODE is a language by [Unknown]

  2. LOLCODE is not a semicolon and curly bracket language

  3. LOLCODE uses the*.lol and*.lols file extensions

  4. LOLCODE is an esotoric programming language

  5. Currently, as of 2022 Wednesday July 27th, 1 variant of LOLCODE is turing complete

  6. LOLCODE is influenced by the Lolcat series of Internet memes

  7. LOLCODE is not one of the top 50 programming languages (as of 2022)

  8. LOLCode is one of the top 50 esotoric programming languages (as of 2022)

  9. No other knowledge of the LOLCODE programming language

Additional comments

  1. LOLCODE is a fun language to write in. I would love to use it for serious purposes, but my usage will remain limited. Unfortunately, I cannot has supercomputer lolz.

File info

File type:Markdown document (*.md *.mkd *.mdown *.markdown)

File version:1 (2022, Wednesday, July 27th at 7:33 pm PST)

Line count (including blank lines and compiler line):276


File history

Click/tap here to expand/collapse the history for this file

Version 1 (2022, Wednesday, July 27th at 7:33 pm PST)

Changes:

  • Started the file
  • Added thetitle section
  • Added theHello World in LOLCODE section
  • Added theComments in LOLCODE section
  • Added theSingle line comments subsection
  • Added theMulti-line comments subsection
  • Added thebreak keyword in LOLCODE section
  • Added theShebangs in LOLCODE section
  • Added theMisc subsection
  • Added theV1.0 subsection
  • Added theV1.2 subsection
  • Added theEnd keyword section
  • Added theError handling section
  • Added theStandard I/O section
  • Added theopening files section
  • Added theDefining a variable section
  • Added theDefining a loop section
  • Added theLOLCODE 1.0 subsection
  • Added theLOLCODE 1.2 subsection
  • Added theother knowledge of the LOLCODE programming language section
  • Added theAdditional comments section
  • Added thefile info section
  • Added thefile history section
  • No other changes in version 1

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp