EasyBite Programming Language
EasyBite is a beginner-friendly programming language designed to introduce kids and beginners to the world of programming. It aims to provide a simple syntax and easy-to-understand concepts while still offering essential programming functionalities.
| Download Setup |
Download Setup with Example |
Download Latest Version |
 |
 |
 |
Table of Contents
- EasyBite Programming Language
- Table of Contents
- Installation
- Syntax
- In-built Libraries and Functions
- Math Library
- String Library
- Array Library
- Dictionary Library
- EasyBite Dictionary Functions
- DateTime Library
- GUI Library
- Detailed Explanation
- button(formName: string, buttonText: string, clickHandler: function)
- checkbox(formName: string, [controlName: string], [text: string], [isChecked: bool], [x: int], [y: int])
- combobox(formName: string, [labelText: string], [top: int], [left: int], [width: int], [height: int])
- createform(formName: string, width: int, height: int)
getbackcolor(formName: string, controlName: string)
- getdock(formName: string, controlName: string): string
- getchecked(formName: string, controlName: string)
getbackcolor(formName: string, controlName: string)
- getenable(formName: string, controlName: string): bool
getforecolor(formName: string, controlName: string)
getimage(formName: string, pictureBoxName: string)
getitem(listName: string, index: number): any
- gettext(formName: string, controlName: string)
getmin(formName: string, controlName: string): int
getmax(formName: string, controlName: string): number
getstyle(formName, controlName)
getvalue(formName: string, controlName: string): any
- getvisible(formName: string, controlName: string) : bool
- getx(formName: string, controlName: string): int
- gety(formName: string, controlName: string): int
- groupbox(formName: string, [text: string], [left: int], [top: int])
- hideform(formName: string)
- label(formName: string, text: string, [fontName: string], [fontSize: int], [fontStyle: string], [foreColor: string], [backColor: string], [top: int], [left: int])
- listbox(formName: string, [labelText: string], [top: int], [left: int], [width: int], [height: int])
- messagebox(formName: string, title: string, message: string, [buttons: string], [icon: string], [defaultButton: string])
- panel(formName: string, [left: int], [top: int])
- picturebox(formName: string, [names: string], [imagePath: string], [width: int], [height: int], [top: int], [left: int])
- progressbar(formName: string, [names: string], [minimum: int], [maximum: int], [value: int], [width: int], [height: int], [top: int], [left: int])
- radiobutton(formName: string, [controlName: string], [text: string], [isChecked: bool], [x: int], [y: int])
- runapp(appName: string)
- setabove(formName: string, targetControlName: string, controlName: string, [spacing: int])
setalignment(formName: string, controlName: string, alignment: string)
setbackcolor(formName: string, controlName: string, color: string)
- setbelow(formName: string, targetControlName: string, controlName: string, [spacing: int])
- setdock(formName: string, controlName: string, dockStyle: string)
- setenable(formName: string, controlName: string, enable: bool)
setforecolor(formName: string, controlName: string, color: string)
setimage(formName: string, pictureBoxName: string, imagePath: string)
setitem(listName: string, index: number, value: any)
- setleft(formName: string, targetControlName: string, controlName: string, [spacing: int])
- setright(formName: string, targetControlName: string, controlName: string, [spacing: int])
- setstyle(formName: string, controlName: string, [fontFamily: string], [fontSize: int], [fontColor: string], [backgroundColor: string], [borderColor: string])
- settext(formName: string, controlName: string, text: string)
setvalue(formName: string, controlName: string, value: any)
- setvisible(formName: string, controlName: string, visible: bool)
- setx(formName: string, controlName: string, x: int)
- sety(formName: string, controlName: string, y: int)
- showdialog(formName: string)
- setlocation(formName: string, controlName: string, x: int, y: int)
setminmax(formName: string, controlName: string, minValue: number, maxValue: number)
showform(formName: string)
- textbox(formName: string, [fontName: string], [fontSize: int], [fontStyle: string], [foreColor: string], [backColor: string], [top: int], [left: int])
- Files Library
- Examples
- Misc Library
- Examples
- SQLite Library
- SQLite Functions
- Contact for Feedback and Bug Reports
Installation
To use EasyBite, you need to have the EasyBite interpreter installed on your machine. Follow the steps below to install it:
- Download the EasyBite interpreter from the official website or download it here in github at the top.
- Run the installer and follow the installation instructions.
- During the installation process, the installer will check if .NET Framework 4.6 or later is already installed on your machine. If it is detected, the installation will proceed to the next step. If it is not detected, you will be prompted with two options:
- Option 1: Download and install .NET Framework from the official Microsoft website. Choose this option if you prefer to download and install .NET Framework separately. Follow the instructions provided by the installer to complete the installation.
- Option 2: Install .NET Framework from the EasyBite setup. Choose this option if you want to install EasyBite along with the required .NET Framework version in one step. The EasyBite setup will automatically install .NET Framework for you.
- Once the installation is complete, you can use the EasyBite interpreter from the command line.
- To run an EasyBite file, open the command prompt or terminal and navigate to the directory where your EasyBite file is located.
- Type
EasyBite yourfilename.bite and press Enter to execute the EasyBite program.
If you encounter any issues during the installation process or have any questions, please don't hesitate to contact us at muhammadgoni51@gmail.com. We are here to assist you.
Syntax
EasyBite has a simple and intuitive syntax that makes it easy to write and understand code. Here are some key elements of the EasyBite syntax:
Syntax Highlight
As EasyBite is a relatively new language, it currently does not have native support for syntax highlighting. However, users can follow a process to manually add indentation and syntax highlighting in Sublime Text. While we are actively working on developing an integrated development environment (IDE) for EasyBite, we kindly ask users to be patient and wait for the upcoming release.
In the meantime, we provide the following steps for configuring indentation and syntax highlighting in Sublime Text for EasyBite:
- Open Sublime Text and go to "Preferences" in the top menu.
- Select "Browse Packages" from the dropdown menu. This will open the Packages folder in your file explorer.
- Create a new folder inside the Packages folder and name it "EasyBite" (or any name you prefer).
- Inside the "EasyBite" folder, download the "EasyBite.sublime-syntax" and "EasyBite.tmPreferences" files from the EasyBite GitHub repository.
- Move the downloaded files into the "EasyBite" folder.
Next, we'll configure the indentation rules for EasyBite:
- Open Sublime Text and go to "Preferences" in the top menu.
- Select "Settings" from the dropdown menu. This will open the Sublime Text settings file.
- Add the following line to the settings file:
"translate_tabs_to_spaces": true. This ensures that indentation is based on spaces instead of tabs.
- Save the settings file.
After completing these steps, Sublime Text should recognize and apply the indentation and syntax highlighting rules for EasyBite files. When you open a file with the ".bite" extension or explicitly set the syntax to EasyBite, Sublime Text will provide proper indentation and highlight the syntax elements according to the defined rules.
Please note that these manual configurations serve as a temporary solution until the official EasyBite IDE is released. We appreciate your patience and understanding as we work towards providing a more streamlined and user-friendly development environment for EasyBite.
Comments
Use the double forwa