Giter Site home page Giter Site logo

tonmanayo / abstractvm Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 2.2 MB

AbstractVM is a machine that uses a stack to compute simple arithmetic expressions. These arithmetic expressions are provided to the machine as basic assembly programs.

CMake 1.01% C++ 76.20% Makefile 22.79%

abstractvm's Introduction

  • AbstractVM
  • Wethinkcode - tmack - 2017 - 2nd year
  • AbstractVM is a C++ project it is a machine that uses a stack to compute simple arithmetic expressions.
  • These arithmetic expressions are provided to the machine as basic assembly programs.
  • This project uses Arithmatic Overleads, Interfaces, Classes, Errorhandling, Inheriance, Instantiation, function overleads.

-- to compile -- cmake . -- make -- ./abstractvm (with no comands or with a file)

  • in file or commands can be:

Enum: {

  • push int8(n)
  • push int16(n)
  • push int32(n)
  • push float(n)
  • push double(n) } VALUE
  • div
  • mul
  • add
  • sub
  • mod
  • assert VALUE
  • print
  • exit

Example { ./abstractvm push int8(12) push float(12) add dump } result: 24

abstractvm's People

Contributors

tonmanayo avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.