If you don't want to build it, run it direct from the source code
- Download
Node.js
(https://nodejs.org/) - Download Basp repo (https://github.com/Astro-gram/Basp)
- Go into that folder
- open the config file:
src/config.js
- Check the
PRODUCTION
variable and make sure it isfalse
- Change
NON_PRODUCTION_FILE_LOCATION
to the location of your .basp file - Go back to the root of the repo and run:
npm run go
If everything worked, you should get the results of your code in your terminal.
(This setup is for Windows only)
- Download
Node.js
(https://nodejs.org/) - Install
pkg package
to build executable
npm install -g pkg
- Download Basp repo (https://github.com/Astro-gram/Basp)
- Go into that folder
- open the config file:
src/config.js
- Check the
PRODUCTION
variable and make sure it istrue
- Go back to the root of the repo and run:
npm run build
- If everything was successful, there should be a file named "main.exe" under a folder named "exe"
Basp
└───exe
└───main.exe
- Run Command Prompt as administrator
- Run these commands to associate .basp files with the executable
assoc .basp=BaspScript
ftype BaspScript=PathToMain.exe %1 %*
(Replace "PathToMain.exe" with the path to the main.exe file)
- Create a file with the extension of .basp
Example File:
Basp
└───code
└───example.basp
- Write some code in your file and open it
If everything worked, you should get a node.js window popup giving you the results of your code.
- Arithmetic Operations
- Array
- Built In Functions
- Comments
- Data Types
- Download
- Enum (no docs currently)
- For Loop
- Function
- If Statement
- Math
- String
- Math
- Structure
- While Loop
- David Callanan (CodePulse): Many methods of his I used to create this programming language.
- His Youtube: https://www.youtube.com/c/CodePulse
- Repo For His Language: https://github.com/davidcallanan/py-myopl-code
- Make Your Own Language Playlist: https://www.youtube.com/playlist?list=PLZQftyCk7_SdoVexSmwy_tBgs7P0b97yD