Skip to content

angauber/abstract-vm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Abstract Vm

RPN calculator virtual machine built in C++ 17

Dependancies

  • A C++ 17 compiller
  • Cmake
  • Catch2

Building

Run ./build.sh build artifacts and executables will be place inside the created build dirrectory

Testing

cd build
ctest . -v

Sample file

; ------------
; sample.avm -
; ------------
push int32(42)
push int32(33)
add
push float(44.55)
mul
push double(42.42)
push int32(42)
dump
pop
assert double(42.42)
exit

./build/avm tests/files/sample.avm

42
42.42
3341.25

About

RPN calculator virtual machine built in C++ 17

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published