Skip to content

🐉 • A toy compiler for Pyscal, a fictional language. Lexical, syntactic, and semantic analysis. No intermediary code. No code optimization. No code generation.

StanleySathler/pyscal-compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

🐉 • A toy compiler for Pyscal, a fictional language. Lexical, syntactic, and semantic analysis. No intermediary code. No code optimization. No code generation.

Resources

Stars

Watchers

Forks