Drawing programming environment

image

.Net C# Visual Studio Code

Project description

This is a .NET C# program which can take commands and translates them into geometrical forms. The application is able to recognize lexical patterns, so that the user can program the environment using For Loops, Methods and assigning variables.

The project was part of the Advanced Software Engineering Module - Year 6 MEng Computer Science.

Features

  1. Programmable variables
  2. For Loops
  3. Methods implementation
  4. Several pre-programmed shapes (Triangle, Circle, Square)
  5. File Load/Save
  6. Color changing
  7. Help - With command listing

How to Run

  1. Clone the repo
  2. Open the solution using Visual Studio
  3. Try it!

Class diagram

image

Example code to run

for count=50;count>0;count=count-1
     size=count*10
     circle size
endfor
fill on
green
rectangle 50,50
moveto 50,0
white
rectangle 50,50
moveto 100,0
red
rectangle 50,50
reset