0.0.7 • Published 7 years ago
pineapple-alpha v0.0.7
Pineapple Language
1. How to install?
For Windows user, open command prompt in Administrator mode and enter the following command:
npm install -g pineapple-alphaFor Mac/Linux user, enter the following command:
sudo npm install -g pineapple-alpha2. How to use?
2.1 Create a file named hello.pine with the following content.
def .main
"Hello world".show2.2 Run the Pineapple interpreter
pine hello.pineHow to get started (For developers)
1.1 You need to install jison parser generator.
npm i -g jison1.2 You also need tsc, Typescript Compiler
npm i -g typescript1.3 Also, TSLint
npm i -g tslint 1.4 Lastly, install needed modules
cd src
npm install2. Generate the parser
./genparser.sh3. Run the typescript transipler
./build.shTo run the transpiler without watching file changes, and also TSLint check:
./build.sh 03.1 How to run TSLint
cd src/ts
tslint --project ./ --fixThe command above will run TSLint on the src/ts folder, and also fix any fixable warnings.
4. How to run test?
./test.sh5. To run the interpreter
./src/bin/pine.js hi.pineNote that hi.pine is just a file name.
6. How to build C++ binding code?
cd src
npm install7. How to publish this package?
./publish8. How to check for unused dependencies?
npm i -g depcheck
cd src
depcheck9. How to package Pineapple's interpreter into a single executable binary?
node package.js