Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/usamafayaz/custom-sharp-compiler
- Owner: usamafayaz
- Created: 2024-10-18T15:43:59.000Z (20 days ago)
- Default Branch: main
- Last Pushed: 2024-10-30T11:41:07.000Z (8 days ago)
- Last Synced: 2024-10-30T12:30:39.665Z (8 days ago)
- Topics: compiler, csharp, csharp-code, custom-compiler, windows-forms
- Language: C#
- Homepage:
- Size: 228 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)