Giter VIP home page Giter VIP logo

abstract-vm's Introduction

Abstract-VM

Abstract-VM is the first C++ 42 school project. The objective is to practice in C++ and Object-Oriented Programming by coding a simple instruction executer & a lexer/parser.

In order to compile and use this program, you need a UNIX operating system, the clang++ compiler, the Bison and Flex softwares, and the Make software. All you need to do is to use the command make in the root folder of the project.


What is Abstract-VM ?

Here is a small description of the program, as describe in the project subject:

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.

More informations about the assembly language used in the project can be found in the project subject.

Features

  • Complete Lexer / Parser impementation using yacc and flex as a parser generator, in order to parse a pseudo assembly language.
  • Use of C++1z standard for a better use of C++ meta-programming. (constexpr operations, templates, ...)
  • Pseudo assembly language parsing and execution using a list to store instructions, and a stack to store and compute the data.

How to use this program ?

In a command line interface, use the command ./abstract_vm to print the usage. In order to execute a set of instructions, you either need to give the program a file with the instructions, or write them in the standard input (by giving stdin or - to the program).

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.