/Anterpreter

An Assignment interpreter

Primary LanguageC#MIT LicenseMIT

Anterpreter

An Assignment interpreter.

The project is loosely structured around the interpreter pattern where each "token" has a corresponding class or method. In this case, there are two types of "tokens" -

  1. Command
  2. Exercise

Command names take precedence over exercises and can be executed with their first characters.

For example, to run the Help command (which prints a list of commands), one can simply enter h. Or to run ListExercises, enter l.

To run an exercise, one may simple enter the exercise number (or the entire name).


   ___        __                       __
  / _ | ___  / /____ _______  _______ / /____ ____
 / __ |/ _ \/ __/ -_) __/ _ \/ __/ -_) __/ -_) __/
/_/ |_/_//_/\__/\__/_/ / .__/_/  \__/\__/\__/_/
                      /_/

...

> h
Commands -
- banner
- clear
- help
- listexercises
- quit
> l
Exercises -
1.  conversions
2.  equalitydiff
3.  primes
4.  equipmentcompany
5.  ducksimulation
6.  equipmentinventory
7.  ducklist
8.  priorityqueueone
9.  priorityqueuetwo
10. priorityqueuethree
11. intextensionmethods
12. lambdasdelegates
13. enumerableextensionsmethods
14. productinventory
15. addremoveobservable
16. fileoperations
17. mathgame