Skip to content

Aksaykanthan/SimpleScript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SimpleScript

English-like Programming Language

Welcome to SimpleScript! We have developed a programming language that is very similar to English. SimpleScript is designed to be easy to read, understand, and learn. The project is implemented using Java, with a Tkinter-based frontend in Python.

Features

  • Variables: Create variables with ease.
  • Data Types: Support for strings, integers, and decimals.
  • Conditional Statements: Use if, elif, and else for conditional logic.
  • Loops: Use for and while loops for iteration.
  • Functions: Define and call functions.
  • List Operations: Perform list indexing and operations.
  • String Operations: Manipulate strings effortlessly.

Syntax Overview

Variables

this number is 5
this decimalNumber is 3.14
this name is "Alice"
this list is [1, 2, 3, 4, 5]

Function declaration

task greet(name)
    print "Hello, " + name + "!"
enclose

To Find Fibonacci Number

task fib(n)
	if(n <= 1)do give 1
	give fib(n-1) + fib(n-2)
enclose

print(fib(5))

Getting Started

Prerequisites

  • Java Development Kit (JDK)
  • Python 3
  • Tkinter for Python

Installation

  1. Clone the repository:
git clone https://github.com/Aksaykanthan/SimpleScript
  1. Navigate to the project directory:
cd SimpleScript
  1. Compile the Java backend:
compile and run src/shell.java
  1. Install Tkinter
pip install tkinter
  1. Run the Tkinter frontend:
python app.py 

Usage

After setting up the project, you can start writing and executing scripts in our English-like programming language using the Tkinter-based frontend.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published