Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/usamafayaz/custom-sharp-compiler

Custom Sharp Compiler is a C# Windows Forms application that serves as a basic compiler, handling lexical analysis, syntax parsing, and error detection for user-provided code.
https://github.com/usamafayaz/custom-sharp-compiler

compiler csharp csharp-code custom-compiler windows-forms

Last synced: 8 days ago
JSON representation

Custom Sharp Compiler is a C# Windows Forms application that serves as a basic compiler, handling lexical analysis, syntax parsing, and error detection for user-provided code.

Awesome Lists containing this project

README

        

# Custom Sharp Compiler

## Overview
CustomSharpCompiler is a semester project built as a Windows Forms application in C#. It compiles a custom programming language with support for variable declarations, operations, functions, and control structures.

## Features

### Variable Declaration and Types
Supports variable declarations for:
- **integar**
- **decimal**
- **match** (boolean)
- **key** (character)

### Arithmetic and Logical Operations
Handles the following operations:
- **Increment**: `inc`
- **Decrement**: `dec`

### Functions
Supports function declarations and function calls.

### Classes
Allows defining classes using custom syntax.

### Input/Output
Supports basic input and output operations.

### Conditional Statements
Supports `if-else` conditions with custom syntax:
- **If**: `agar`
- **Else**: `magar`
- **Else If**: `agarmagar`

### Loops
Supports `for` loops with custom syntax.

## Technology Stack
- **Language**: C#
- **Framework**: Windows Forms
- **Tools**: Visual Studio

## Installation and Setup

1. Clone the repository:
```bash
git clone https://github.com/usamafayaz/custom-sharp-compiler.git
```

2. Open the project in Visual Studio.

3. Build the solution:
```bash
Build > Build Solution
```

4. Run the application:
```bash
Debug > Start Without Debugging
```

## Contact
For any inquiries, please contact [[email protected]].

![Alt text](./screenshots/1.png)
![Alt text](./screenshots/2.png)