https://github.com/rbaltrusch/cpp-natscript
C++ translation of Natscript interpreter previously implemented in Python.
https://github.com/rbaltrusch/cpp-natscript
cpp custom-interpreted-language custom-language interpreter programming-language programming-languages
Last synced: 3 months ago
JSON representation
C++ translation of Natscript interpreter previously implemented in Python.
- Host: GitHub
- URL: https://github.com/rbaltrusch/cpp-natscript
- Owner: rbaltrusch
- License: mit
- Created: 2021-11-09T21:34:31.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-12-04T11:07:48.000Z (over 2 years ago)
- Last Synced: 2025-01-11T21:13:37.048Z (4 months ago)
- Topics: cpp, custom-interpreted-language, custom-language, interpreter, programming-language, programming-languages
- Language: C++
- Homepage:
- Size: 144 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
[](https://opensource.org/licenses/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](https://github.com/rbaltrusch/cpp_interpreter/wiki).
Available functionality includes variables, conditionals, function and lambda definitions, as well as scope and nesting.
### Examples
Examples can be found [here](https://github.com/rbaltrusch/cpp_interpreter/tree/master/examples).
### 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](https://github.com/rbaltrusch/python_interpreter).
## License
This repository is open-source software available under the [MIT license](https://github.com/rbaltrusch/cpp_interpreter/blob/master/LICENSE).
## Contact
Please raise an issue for code changes. To reach out, please send an email to [email protected].