Nathan Programming Language by Nathan Johnson and Nathan Duong
Latest update: 5/16/2024
Author emails: Nathan0Johnson2021@gmail.com & nathan.duong@sjsu.edu
The Nathan Programming language is a simple programming language built-in Python, loosely based on basic.
Nathan Programming Language has the following features:
Nathan PL is able to handle arithmetic of both integers and floating point numbers with the following operations:
- addition
- subtraction
- multiplication
- division
- exponents
Nathan PL can also handle logical comparisons of numbers such as:
- equal
- not equal
- less than
- greater than
- less than or equal
- greater than or equal
Nathan PL also has functionality for the logical operations:
- AND
- OR
- NOT
Nathan PL uses 0 as false and 1 as true
Nathan PL's has the functionality to store variables as a single character using the variable definition keyword "NATE", the variable name, an equal sign, and then the desired value to store
Example of setting the variable 'a' equal to the value 21:
nathan > NATE a = 21
Run the following command:
$ python shell.py
Upon successful execution, the terminal should look like:
nathan >
At which point you can start to run lines of code using Nathan Programming Language!
Code adapted from:
David Callanan's "py-myopl-code" repository
https://github.com/davidcallanan/py-myopl-code
https://youtube.com/playlist?list=PLZQftyCk7_SdoVexSmwy_tBgs7P0b97yD&si=zwvGlTvgDj18p-ga