Code Monkey home page Code Monkey logo

cattail's Introduction

[NOTICE] Repo Archived

This is a repo for the Assignment of the Object-Oriented Technology course, and have already submitted. Archive because no further commit will take place.

Cattail

Intro

     cattail, version 1.0.6
  The ANU-SDUW C++ OOP Assignment
 _________________________________
|                                 |
|    __  __  _|_ _|_  __  - |     |
|   /   /  |  |   |  /  | | |     |
|   \__ \_/|  |/  |/ \_/| | |/    |
|_________________________________|

Build & Run

# change directory to where the RAEDME.md is stored
$ cd cattail/
# run make to compile
$ make
# execute the binary file
$ ./cattail

Usage

Just like a normal interpreter, if you don't know how, type help (after launch).

cattail$ help
cattail, version 1.0.6
ANU-SDUW C++ OOP Assignment

set  - Set program status.
new  - Instantiate new shape object,
       store it in temporary memory.
tmp  - View temporary memory object.
stk  - Perform stack operation.
exit - Exit the program.

cattail$ _

File Structure

cattail/                      |  Parent directory
├── README.md                 |  README file, Description & Usage
├── SampleOutput.txt          |  Sample output
├── auto.lyn                  |  Auto test input sample
├── makefile                  |  Makefile for `make`
├── include/                  |  Header file directory
│   ├── command/              |    Header for command handle
│   │   ├── Command.h         |  
│   │   ├── CommandTree.h     |  
│   │   └── Message.h         |  
│   ├── object/               |    Header for object implementation
│   │   ├── Circle.h          |  
│   │   ├── Rectangle.h       |  
│   │   ├── Shape.h           |  
│   │   └── Triangle.h        |  
│   ├── struct/               |    Header for data structure
│   │   ├── Stack.h           |  
│   │   └── StackException.h  |  
│   └── utility/              |    Header for others
│       ├── LynType.h         |  
│       ├── ProgramState.h    |  
│       └── ValidString.h     |  
└── src/                      |  Main source file directory
    └── main.cpp              |  

Auto Test

$ ./cattail <auto.lyn &>out.txt

cattail's People

Watchers

Liu Qisheng 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.