Skip to content

Compiler for a data visualization language, PlOtter 🐬, written in Ocaml, that compiles to C++.

Notifications You must be signed in to change notification settings

saniaarif22/PlOtter

Repository files navigation

Alt Img

Requirements

OCaml
C++11

Sample Output

Alt text

Steps to Run:

  • Navigate to the src/ folder

cd src

  • Run the make file

make

  • Run the program, .svg is created

./plt /path_to_your_program.plt

  • Open the svg (hello.svg) file in a browser to view

If you intentionally want to do it the long way:

  • Write a program in plotter and save it as <program_name>.plt

  • Compile the plt program to generate a C++ program

./plotter < <program_name>.plt > <program_name>.cpp

  • Compile the C++ program

g++ -std=c++11 prg_name.cpp

  • Run the executable which then generates a SVG 'hello.svg' as output

./a.out

  • Open the svg file (hello.svg) in a browser to view

Logo Designed by Sriram Govindasamy (@Sriram3056)

About

Compiler for a data visualization language, PlOtter 🐬, written in Ocaml, that compiles to C++.

Resources

Stars

Watchers

Forks

Packages

No packages published