Skip to content
/ SCAPES Public
forked from RunheZH/SCAPES

The School of Computer science Assembly Programming Environment System (SCAPES) is a development environment that allows a user to write, compile, and execute basic programs written in the School of Computer science Assembly Programming Language (SCAPL) language.

Notifications You must be signed in to change notification settings

Nradar/SCAPES

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

COMP 3004 - 2019 Fall

02 - Team Do-while

Group members

Runhe Zhong 101016659

Jie Ji 101022463

Xinting Wang 101055027

Tiancheng Zhao 100988646

RUN PROCESS:

  1. locate at the folder in terminal
  2. bash run

ALTERNATIVE PROCESS:

  1. open terminal
  2. locate at the interface folder
  3. type /home/student/Qt/5.13.0/gcc_64/bin/qmake
  4. type make
  5. type ./SCAPES

Description:

This SCAPES software allowed the user to create, load, save, compile, and run a program that was written by SCAPES language. The strategy pattern is used for handling different kinds of statements. This pattern allows choosing a specific algorithm during the runtime. It includes context class, strategy class, and different concrete strategy classes. The context class will refer to the strategy API for performing a certain algorithm. The strategy class will have some virtual functions that different concrete strategy classes that are inherited from it could assign their functions. In our program, the program class is context class, the statement class is the strategy class, and different statement classes are different concrete strategy classes. When the user tried to compile or run a SCAPES program, the type of a statement could be determined during the software run time. Apart from it, each statement's behavior could be modified easily. It means that we can add or remove or edit a class without touching other classes.

Test-Program (for Delierable 1, in the folder "test-program/D1"):

  1. largeNumberPrint.scp - Allow user to input two numbers, and the program will print the large number.

  2. secretNumberGues.scp - Allow one user to input a secret number, and then second user to input a number to guess the secret number, the loop will keep going on until the second user's number is larger than the first user's.

Sample-Program (for Delierable 2, in the folder "test-program/D2"):

  1. SP1.scp - Allow user to input two integers, keep asking until the two inputs are not equal. Output is an array: the first element is the smaller input integer, the second element is the larger input integer, the third element is the sum of these two integers Contains all the instructions
  2. SP1.scp - This is a game that allows user to guess a secret number within 5 chances. User can decide if they want to restart the game again or not after game is over. Contains all the instructions Contains two loops, one is a nested loop

Be Aware! Your program must have an ‘end’ to indicate the end of the program. Otherwise, it won’t compile.

Resource Credits:

  1. icons:{compile_icon.png, new_icon.png, open_icon.png, run_icon.png, save_icon.png}, all icons credited to LogoMakr.com, "Created my free logo at LogoMakr.com"

About

The School of Computer science Assembly Programming Environment System (SCAPES) is a development environment that allows a user to write, compile, and execute basic programs written in the School of Computer science Assembly Programming Language (SCAPL) language.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 96.7%
  • QMake 3.2%
  • Shell 0.1%