Skip to content

adri-er/monty_python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Monty in Python

This is a Monty ByteCodes files interpreter

Usage

Create a monty file in this directory and type this command

python3 main.py filename

Monty files rules:

  • One instruction per line.
  • Text after the command or its argument is ignored.
  • Any number of spaces before or after the command and its argument.
  • Blank lines allowed (empty or made of spaces).
  • A monty file can be or not ended in '.m'.

Available functions

File Description
PUSH Pushes an element to the stack
PALL Prints all the values on the stack, starting from the top of stack
PINT Prints the value at the top of the stack
POP Removes the top element of the stack
SWAP Swaps the top two elements of the stack
ADD Adds the top two elements of the stack

Group Fun comments

The song Nat heard: https://www.youtube.com/watch?v=30oa0b2mdUo

The song actually played: https://www.youtube.com/results?search_query=corridos+de+vicente+fern%C3%A1ndez

Authors

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages