Skip to content

Latest commit

 

History

History
39 lines (23 loc) · 1003 Bytes

README.md

File metadata and controls

39 lines (23 loc) · 1003 Bytes

Author: Stanley Sathler Pinto


Pyscal Compiler

Pyscal is a basic programming language, built for learning purposes. Its main goal is to serve as a target language for building a compiler.

Running the compiler

It was built for NodeJS v10.16.0 or higher. Once you install NodeJS, npm 6.10.1 should be automatically installed as well.

To run any command below, make sure you are under the project's root directory:

$ cd path/to/pyscal-compiler

Installing the dependencies

For a better printing on the terminal, the compiler uses a few 3rd-party packages. You need to install them.

$ npm install

This command installs any dependencies required by the compiler.

Running the program

Once all dependencies are installed, all you have to do is type the following commands:

$ npm start path/to/your/source/file.pys

#### OR (if you prefer)

$ node index.js path/to/your/source/file.pys