Skip to content

cheesykirah/kirahplusplus-compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Kirah++ Programming Language Manual

Introduction

Kirah++ is a unique, LGBTQ+ friendly programming language based on Python 3, designed to be expressive and inclusive. This manual provides an overview of the syntax and features of Kirah++, as well as instructions on how to write and compile Kirah++ code.

Basic Structure

Program Start

Every Kirah++ program must start with the following line:

hören sie mich aus

Program Execution Context

Define the execution context of the program with:

INT. COMPUTER

Program End

Every Kirah++ program must end with:

another day another victory for the og

LGBTQ+ Rights Declaration

To ensure inclusivity, include the following line in your code:

please lgbtq rights

Comments

Comments in Kirah++ are indicated using:

Anmerkung: This is a comment

Output Statements

To print a message to the console, use:

sag mal bitte uwu "message" please

or to print a variable:

sag mal bitte uwu variable_name please

Variables and Data Types

Integer

Declare an integer variable:

integer variable_name = value

Floating-Point Numbers

Declare a floating-point variable:

integer 2: jetzt erst recht! variable_name = value

Strings

Declare a string variable:

buchstabenkette variable_name = "value"

Functions

Defining a Function

Define a function using:

methode function_name(args) please
    # function body

Control Structures

If Statement

Conditional statements are written as:

na wenn das so ist condition please
    # code to execute if condition is true

If-Not Statement

Negated conditional statements are written as:

if'nt condition please
    # code to execute if condition is false

Loops

For Loop

For loops are written as:

Wiederholungsschleife: variable in der Reihe(start, end) please
    # loop body

Break Statement

To break out of a loop, use:

SCHLUSS JETZT!

For-Not Loop

Negated for loops are written as:

forn't condition please
    # loop body

Import Statements

To import a module, use:

wandere module_name ein mit deckname alias please

Positivity

Kirah++ promotes positive thinking. Negative numbers or negativity in the code will result in an error:

ERROR: Bewahre ein #positivemindset!

Example Program

Here is a simple Kirah++ program that prints "Hello, World!" to the console:

hören sie mich aus
INT. COMPUTER
Anmerkung: Hier ist eine einfache Hello World Umsetzung.
text = "Hallo Welt"
sag mal bitte uwu text please
please lgbtq rights
another day another victory for the og

Compiler Usage

To compile and execute a Kirah++ program, use the kirah_plus_plus_compiler function provided in the compiler script. Here is how to do it:

  1. Write your Kirah++ code and store it in a string variable, for example:

    kirah_code = """
    hören sie mich aus
    INT. COMPUTER
    Anmerkung: Hier ist eine einfache Hello World Umsetzung.
    text = "Hallo Welt"
    sag mal bitte uwu text please
    please lgbtq rights
    another day another victory for the og
    """
  2. Pass this string to the kirah_plus_plus_compiler function:

    kirah_plus_plus_compiler(kirah_code)

This will compile and execute your Kirah++ code.

Conclusion

Kirah++ is a fun, expressive language designed to make programming more inclusive and enjoyable. Use this manual as a reference to explore its unique syntax and features. Happy coding!

(Written by ChatGPT, no garantee on accuracy)