arbazcodes / MiniLang-Parser

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MiniLang Parser

This repository contains a simple parser for the MiniLang programming language. MiniLang supports basic programming constructs such as arithmetic expressions, variable assignments, if-else conditions, and print statements.

Usage

To use the MiniLang parser, follow these steps:

Clone the repository:

git clone https://github.com/your-username/minilang-parser.git cd minilang-parser

Run the parser on a MiniLang source code file:

python minilang_parser.py <file_path> Replace <file_path> with the path to your MiniLang source code file.

Language Specifications

MiniLang supports the following constructs:

Arithmetic expressions Variable assignments If-else conditions Print statements

Parser Implementation

Parser Type

The MiniLang parser is implemented as a recursive descent parser, chosen for its simplicity and suitability for LL(k) grammars.

About


Languages

Language:Python 100.0%