Skip to content

prashanth-up/FidiScript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FidiScript

A new programming language.

So FidiScript is an illegitimate kid to python and my boredom. It is interpreted over python with grammar rules set on a syntax tree parsed with binary tree. The lexer interprets all tokens predefined to follow grammar syntax rules and form an expression. The predefined lexer tokens range from basic identifiers to complete function definitions.

Getting started

Here is an example how to get this thing running on your local machine.

Requirements:

  • Python (obviously, duh)
  • Willingness to waste some time here

Installation and setup

  1. Clone the repo using github cli
gh repo clone prashanth-up/FidiScript 

or do it like a lame kid

git clone https://github.com/prashanth-up/FidiScript.git
  1. Navigate to root directory and run shell.py
python shell.py
  1. That's it. The CLI based FidiScript should be running now. It should look like this
fidiscript>

Usage

Mathematical Expressions:

All basic mathematical operations can be performed. Expressions priority is based on BEDMAS (^ is for exponent)

VAR is the universal keyword to store any values in all datatypes(For now...)

FidiScript>(420+69) * 5318008
2600505912
FidiScript> 4*(24/2-5)+14^2
224.0
FidiScript> VAR foo = 321
321
FidiScript> VAR oof = 123
123
FidiScript> foo + oof
444

String Manipulation:


Contributing

  1. Fork the Project
  2. Create your own Feature Branch (git checkout -b feature/UselessFeature)
  3. Commit your Changes (git commit -m 'Add some UselessFeature')
  4. Push to the Branch (git push origin feature/UselessFeature)
  5. Open a Pull Request
  6. I reject them all (JK, help me in this pls)

License

The repository prashanth-up/FidiScript is licensed under the GNU General Public License v3.0. See LICENSE for more details.


Made with frustration and pain❤

About

New language wrapper with custom syntax built over python3's grammar rules

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages