Skip to content

KhaledHima/genzsharp-compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GenZ# Compiler

A custom programming language and compiler implemented in C#, featuring a Gen Z–inspired syntax and a WPF-based interactive compiler UI.

Overview

GenZ# is an educational programming language designed to make learning compiler construction more engaging by replacing traditional syntax with modern slang-inspired keywords — while preserving strict typing and structure.

The project includes:

  • Lexical analysis (Scanner)
  • Recursive-descent parsing (AST generation)
  • Semantic analysis with scope & type checking
  • Interactive WPF compiler interface

Language Features

  • Custom keywords (e.g. lwk, grind, fumble)
  • FAT-style block delimiters (<letscook / cooked>)
  • Strong typing with type inference (sus)
  • Relatable error messages

Architecture

  • Scanner — Tokenizes source code using prioritized regex rules
  • Parser — Builds an AST using LL-style recursive descent
  • Semantic Analyzer — Performs scope management, type checking, and validation
  • WPF UI — Visualizes tokens, AST, and semantic analysis results

How to Run

  1. Open GenZ_WPF.sln in Visual Studio
  2. Build and run the project
  3. Write GenZ# code in the editor and compile

Documentation

Full language specification and design details are available in: docs/GenZ#-Language.pptx

Disclaimer

This project is for educational purposes and is not intended for production use.

Students

  • KhaledHima
  • ihateskil

About

Custom Gen Z–inspired programming language and compiler built in C#.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Contributors

Languages