A simple, procedural Psuedocode Interpreter
HPI is a simple, procedural interpreter for the psuedocode designed by me. It is designed to be as easy to use as possible, with a lesser learning curve and is written in C++. Its syntax is derived mostly from languages such as Python and Pascal. This project is based on the JLox interpreter of crafting interpreters.
It simply means - Harish's Psuedocode Interpreter.
- Simple and easy to learn syntax
- Newline-terminated statements
- Support for anonymous functions
- Support for dynamic input
This interpreter just depends only on the C++(v23) Standard Library.
The easiest way to install this project is to download the source code and build it. Also, executables for major platforms has been provided in releases page.
If you're going to use the precompiled binaries, make sure that you've added their location to your PATH environment variable for system-wide access.
A web editor is also available for this at https://harishtpj.github.io/HPI/.
To run your first program, fire up you favourite text editor and copy the following lines to hello.hpi
file:
# A Simple Hello, World! program
println "Hello, world!"
Then open a new terminal in the same directory as the file and run:
$ hpi hello.hpi
For windows users: just run the same command.
You'll see the following output on your terminal:
Hello, world!
This project has a documentation page on GitHub. If you've any issues or suggestions, you can open an issue on GitHub.
Contributors are welcome. If you suggest any improvement in this project, please create a pull request on GitHub.
This project is currently maintained by M.V.Harish Kumar.
Copyright © 2023 M.V.Harish Kumar.
This project is MIT licensed.
- Create a basic, functional interpreter
- Make a web editor for HPI
- Refine syntax and logic
This project is complete with its syntax and functionality. However changes will be made to the functionality and logic of this project.