Skip to content

C++ translation of Natscript interpreter previously implemented in Python.

License

Notifications You must be signed in to change notification settings

rbaltrusch/cpp-natscript

Repository files navigation

License: MIT

C++ implementation of Natscript Interpreter

C++ translation of Natscript interpreter previously implemented in Python.

Natscript is a custom interpreted language currently under development, which is to be very close to natural English.

Getting started

To get a copy of this repository, simply open up git bash in an empty folder and use the command:

	$ git clone https://github.com/rbaltrusch/cpp_interpreter

To run the interpreter, run src/main.cpp. At the moment, it is configured to only parse in and interpret file contents, rather than an interactive console.

Documentation

Available commands

A list of the currently available Natscript commands will be found in the wiki.

Available functionality includes variables, conditionals, function and lambda definitions, as well as scope and nesting.

Examples

Examples can be found here.

Tutorials

Tutorials will be written once more commands are supported by Natscript.

Setup

Written in C++17 using VS Code, g++ v11.2.0.

Python

The python implementation of this interpreter can be found here.

License

This repository is open-source software available under the MIT license.

Contact

Please raise an issue for code changes. To reach out, please send an email to [email protected].

Releases

No releases published

Packages

No packages published

Languages