Skip to content

andrpavlou/Compilers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Compilers

Project 1

Usage:

Exercise 1:

  1. input from terminal
make run
  1. run with input from my test file
make test

Exercise 2:

  1. input from exercise2/test/input/current_input.txt
make run

make -> ./test_run.sh: run sequence of made tests

Project 2

Usage:

  1. Run all tests, both Errored and Non-Errored:

    make run_test_all
    
    • Displays all FAILED tests and ERRORS in stdout
    • Offsets are stored in logs/test_all.log
    • Errored tests will not display offset
  2. Run all tests expected to throw an error:

    make run_test_invalid
    
    • Runs all files matching the -error* pattern
    • Detailed error logs are stored in logs/test_invalid.log
  3. Run all tests expected to pass (no errors):

    make run_test_valid
    
    • Runs all non -error* files
    • Offset results are stored in logs/test_valid.log
  4. Run specific files manually:

    make
    java -cp bin/ Main FilePath1 FilePath2
    

    Example: java -cp bin/ Main minijava-examples-new/Factorial.java minijava-examples-new/Factorial-error.java

    • Outputs results to stdout

Releases

No releases published

Packages

No packages published