Skip to content
This repository has been archived by the owner on Apr 24, 2022. It is now read-only.

cjemerson/CPS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

93 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CPS (C++ to PostScript)

CS 372 Project 2 -- Michael Bilan, Bradley Morton and Charles Emerson

Table of Contents:

  1. Introduction
  2. Progress
  3. Steps to Compile and Run the Main Program
  4. Steps to Compile and Run the Testing Framework
  5. Documentation

Introduction

This is a Software Construction exercise in design patterns. The goal of this project is to design and implement a high-level C++ shapes-language to PostScript translator.

Progress

Basic Shapes

Does it exist? Does it pass the bounding box test? Does it pass the PostScript test? Is it documented?
Circle ✔️ ✔️ ✔️ ✔️
Polygon ✔️ ✔️ ✔️ ✔️
Spacer ✔️ ✔️ ✔️ ✔️
Square ✔️ ✔️
Triangle ✔️ ✔️

Compound Shapes

Does it exist? Does it pass the bounding box test? Does it pass the PostScript test? Is it documented?
Rotated ✔️ ✔️ ✔️
Scaled ✔️ ✔️ ✔️
Layered ✔️ ✔️ ✔️
Vertical ✔️ ✔️ ✔️
Horizontal ✔️ ✔️ ✔️

Advanced Shapes

Does it exist? Does it pass the bounding box test? Does it pass the PostScript test? Is it documented?
Ellipse ✔️ ✔️ ✔️
Donut ✔️ ✔️
Star
Diamond
Right-Triangle

Steps to Compile and Run the Main Program

(This method requires CMake 2.6 or later to be installed)

  1. Create a new folder in the project folder called build
  2. Navigate into build
  3. cmake ..
  4. make
  5. Run ./cps_main.out

Steps to Compile and Run the Testing Framework

(This method requires CMake 2.6 or later to be installed)

  1. Download the Catch2 single-header catch.hpp into the folder include
  2. Create a new folder in the project folder called build (if not already created)
  3. Navigate into build.
  4. cmake ..
  5. make
  6. Run ./catch_tests.out

Documentation

See the official documentation.