Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 

Repository files navigation

NathanProgrammingLang

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.

Features

Nathan Programming Language has the following features:

Arithmetic


Nathan PL is able to handle arithmetic of both integers and floating point numbers with the following operations:

  • addition
  • subtraction
  • multiplication
  • division
  • exponents

Comparison and Logical Operations


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

Variables


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

How to run

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!

Credits

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

About

Nathan Programming Language by Nathan Johnson and Nathan Duong

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages