Fizz
My own statically typed programming language with support of pointers, a custom compiler (Lexer, Parser , Abstract syntax tree) written in C++
Install / Use
/learn @jm24abj/FizzREADME
The Fizz Language
Developed by Jack Milner
Table of contents
Overview
This is my own programming language written to reduce time typing and created to learn about the creation of languages and compilers for my own personal growth as a computer scientist. The program is written in C++ and contains a Lexer, Abstract syntax tree, Parser and a module for converting IR code to an object file. This project also makes use of LLVM which is the software used to make the C compiler CLANG.
My language is...
- A compiled language written for simplicity and reduced typing
- Statically typed
- Contains my own compiler written in C++
- Makes use of LLVM for IR to source code translation
Data Types
| Data Type | Description | | :---------------- | :-----------------------------------------------------------------: | | String | | | int | | | bool | | | float | | | double | | | char | |
Syntax
- out() - displays text to the screen
- f - function declaration
- while
- if
- elif
- else
f int fizzbuzz(int n) {
int i = 1;
while i <= n {
if i % 15 == 0 {
out("fizzbuzz");
} elif i % 3 == 0 {
out("fizz");
} elif i % 5 == 0 {
out("buzz");
} else {
out(i);
}
i = i + 1;
}
return 90
}
fizzbuzz(15);
Related Skills
openhue
346.8kControl Philips Hue lights and scenes via the OpenHue CLI.
sag
346.8kElevenLabs text-to-speech with mac-style say UX.
weather
346.8kGet current weather and forecasts via wttr.in or Open-Meteo
tweakcc
1.6kCustomize Claude Code's system prompts, create custom toolsets, input pattern highlighters, themes/thinking verbs/spinners, customize input box & user message styling, support AGENTS.md, unlock private/unreleased features, and much more. Supports both native/npm installs on all platforms.
