Skip to content

Astro-gram/Basp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Basp Programming Language

Setup Locally (Directly Run)

If you don't want to build it, run it direct from the source code

  1. Download Node.js (https://nodejs.org/)
  2. Download Basp repo (https://github.com/Astro-gram/Basp)
  3. Go into that folder
  4. open the config file: src/config.js
  5. Check the PRODUCTION variable and make sure it is false
  6. Change NON_PRODUCTION_FILE_LOCATION to the location of your .basp file
  7. 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.


Setup Locally (Build)

(This setup is for Windows only)

  1. Download Node.js (https://nodejs.org/)
  2. Install pkg package to build executable
npm install -g pkg
  1. Download Basp repo (https://github.com/Astro-gram/Basp)
  2. Go into that folder
  3. open the config file: src/config.js
  4. Check the PRODUCTION variable and make sure it is true
  5. Go back to the root of the repo and run:
npm run build
  1. If everything was successful, there should be a file named "main.exe" under a folder named "exe"
Basp
└───exe
    └───main.exe

  1. Run Command Prompt as administrator
  2. 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)

  1. Create a file with the extension of .basp

Example File:

Basp
└───code
    └───example.basp
  1. 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.



Documentation


Credit

About

My programming language. Similar to JavaScript, with a semi-optional type system. Written fully in JavaScript with 0 dependencies.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published