0% found this document useful (0 votes)
2 views

message-5

This document is a script for a compilers course at Algonquin College for Fall 2023, detailing the setup and execution of basic tests using a JavaScript compiler. It defines various input files, output settings, and error handling for the compilation process. The script includes echo statements for visual output and commands to compile multiple test files while redirecting the output and error messages to specified files.

Uploaded by

ryan
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

message-5

This document is a script for a compilers course at Algonquin College for Fall 2023, detailing the setup and execution of basic tests using a JavaScript compiler. It defines various input files, output settings, and error handling for the compilation process. The script includes echo statements for visual output and commands to compile multiple test files while redirecting the output and error messages to specified files.

Uploaded by

ryan
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

q:: ---------------------------------------------------------------------

:: COMPILERS COURSE - SCRIPT -


:: SCRIPT A22 - CST8152 - Fall 2023 -
:: ---------------------------------------------------------------------

CLS
SET COMPILER=JSCompiler.exe

SET FILE1=INPUT0_Empty
SET FILE2=INPUT1_Hello
SET FILE3=INPUT2_Return
SET FILE4=INPUT3_Datatypes
SET FILE5=INPUT4_Big

SET ASSIGNMENT=A32
SET EXTENSION=zajs
SET OUTPUT=out
SET ERROR=err

SET PARAM=3

:: ---------------------------------------------------------------------
:: Begin of Tests (A32 - F23) ------------------------------------------
:: ---------------------------------------------------------------------

@echo off

ECHO "=---------------------------------------="
ECHO "| COMPILERS - ALGONQUIN COLLEGE (F23) |"
ECHO "=---------------------------------------="
ECHO "| .... |"
ECHO "| ........::.::::::. |"
ECHO "| .:........::.:^^^~~~: |"
ECHO "| :^^::::::^^^::^!7??7~^. |"
ECHO "| .:^~~^!77777~~7?YY?7??7^. |"
ECHO "| :.^~!??!^::::^^~!?5PY??!~. |"
ECHO "| ~!!7J~.:::^^^^~!!~~?G5J?~ |"
ECHO "| :^~?!~7?Y57^^?PP5YJ!J5Y?: |"
ECHO "| .~!!.:^!7!:.:7JYYJ7~7Y7^ |"
ECHO "| .~77.. . .~^:^^^~7?: |"
ECHO "| .^!^~:::.:^!7?~^~!77J: |"
ECHO "| ^^!Y~^^^^~?YJ77??7JJ^ |"
ECHO "| .^7J?~^~~^~7??7??7JY?~: |"
ECHO "| ::^^~^7?!^~~!7???J?J7~:. |"
ECHO "| ^~~!.^7YPPPP5Y?7J7777~. |"
ECHO "| ..:~..:^!JPP5YJ?!777!^. |"
ECHO "| .~?JJJJJJJJJJYYYYYPPPPPPPPPPPP5PPYY~ |"
ECHO "| :!Y5GGG.___ YYYYYY__._.PPGGGGGG5!. |"
ECHO "| :!Y5G / __| ___ / _(_)__ _ PGP5. |"
ECHO "| :~75 \__ \/ _ \ _| / _` | 5?. |"
ECHO "| 7~7 |___/\___/_| |_\__,_| Y5?. |"
ECHO "| .^~!~.....................P5YY7. |"
ECHO "| .:::::::::::::?JJJJYYYYYYYYYJJJJ7. |"
ECHO "| |"
ECHO "=---------------------------------------="
ECHO " "
ECHO "[READER SCRIPT .........................]"
ECHO " "
ren *.exe %COMPILER%

::
:: BASIC TESTS ----------------------------------------------------------
::
:: Basic Tests (A32 - W22) - - - - - - - - - - - - - - - - - - - - - -

%COMPILER% %PARAM% %FILE1%.%EXTENSION% > %FILE1%-%ASSIGNMENT%.%OUTPUT% 2>


%FILE1%-%ASSIGNMENT%.%ERROR%
%COMPILER% %PARAM% %FILE2%.%EXTENSION% > %FILE2%-%ASSIGNMENT%.%OUTPUT% 2>
%FILE2%-%ASSIGNMENT%.%ERROR%
%COMPILER% %PARAM% %FILE3%.%EXTENSION% > %FILE3%-%ASSIGNMENT%.%OUTPUT% 2>
%FILE3%-%ASSIGNMENT%.%ERROR%
%COMPILER% %PARAM% %FILE4%.%EXTENSION% > %FILE4%-%ASSIGNMENT%.%OUTPUT% 2>
%FILE4%-%ASSIGNMENT%.%ERROR%
%COMPILER% %PARAM% %FILE5%.%EXTENSION% > %FILE5%-%ASSIGNMENT%.%OUTPUT% 2>
%FILE5%-%ASSIGNMENT%.%ERROR%

:: SHOW OUTPUTS - - - - - - - - - - - - - - - - - - - - - - - - - - -
DIR *.OUT
DIR *.ERR

:: ---------------------------------------------------------------------
:: End of Tests (A32 - F22) --------------------------------------------
:: ---------------------------------------------------------------------

You might also like