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.
Here is an example how to get this thing running on your local machine.
- Python (obviously, duh)
- Willingness to waste some time here
- 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
- Navigate to root directory and run shell.py
python shell.py
- That's it. The CLI based FidiScript should be running now. It should look like this
fidiscript>
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:
- Fork the Project
- Create your own Feature Branch (
git checkout -b feature/UselessFeature) - Commit your Changes (
git commit -m 'Add some UselessFeature') - Push to the Branch (
git push origin feature/UselessFeature) - Open a Pull Request
- I reject them all (JK, help me in this pls)
The repository prashanth-up/FidiScript is licensed under the GNU General Public License v3.0. See LICENSE for more details.