Skip to content

deesnutz00/Zigma

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

9 Commits
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ•ถ๏ธ Zigma - A Gen Z Inspired Programming Language

GenZLang is a fun and modern twist on programming language design, integrating Gen Z slang to make coding more relatable and engaging for younger developers. Built using Flex, this project focuses on the development of a lexical analyzer that tokenizes Gen Z-styled code into syntactically correct tokens for further compilation stages.


๐Ÿง  Project Objective

To develop a lexical analyzer for a custom Gen Z-inspired programming language using Flex, replacing traditional keywords and operators with Gen Z terms and cultural references.


โœจ Features

  • โœ… Recognizes Gen Z slang as language keywords, functions, and operators
  • โœ… Supports arithmetic, relational, logical, and assignment operators
  • โœ… Handles identifiers, numbers, strings, and comments
  • โœ… Detects library includes
  • โœ… Allows for dynamic function detection

๐Ÿงฉ Language Specification

๐Ÿ”‘ Keywords

yeet, big_numbers, lowkey, drip, noCap, slide, orNah, rizz

๐Ÿงฎ Operators

Relational:

>=, <=, ==, >, <

Arithmetic:

+, -, *, /, %, ++, --

Assignment:

=, +=, -=, *=, /=, %=

Logical:

&&     โ†’ bet  
||     โ†’ eitherOrNah  
!      โ†’ sike

๐Ÿ”ข Numbers

  • Integers: 123
  • Floats: 123.456
  • Negatives: -10

๐Ÿง‘โ€๐Ÿ’ป Identifiers

  • Variable/Function names like:
    glowUp, drip_level
    

๐Ÿ“ž Functions

Zigma boi be like Meaning
yapp() print()
yoink() scanf()
master_chief() main()
Any identifier followed by ( is recognized as a function

๐Ÿ’ฌ Strings

"fortnite", "big justice!"

๐Ÿ—ฃ๏ธ Comments

  • Single-line:

    // This is a comment
  • Multi-line:

    /* This is a multi-line comment */

๐Ÿ“š Library Includes

#include <zoomer.h>

๐Ÿ”ง Built With

  • Flex (Fast Lexical Analyzer Generator)
  • Gen Z cultural references โœจ

๐Ÿš€ Getting Started

Coming soon โ€” setup instructions, example code, and how to compile using flex and gcc.


๐Ÿค˜ Sample Code (Coming Soon)

#include <zoomer.h>

master_chief() {
    drip_level = 100;
    yapp("Rizz mode activated!");
}

About

A genZ lingo inspired programming language.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published