Compare commits
No commits in common. "3f58bdfad901cc6a33adf01634cc09dcc43baddc" and "955517af2929731a222aeea887e8ce1aeabd34ce" have entirely different histories.
3f58bdfad9
...
955517af29
3
.gitignore
vendored
3
.gitignore
vendored
@ -60,6 +60,3 @@ local.properties
|
|||||||
# Typically, this file would be tracked if it contains build/dependency configurations:
|
# Typically, this file would be tracked if it contains build/dependency configurations:
|
||||||
#.project
|
#.project
|
||||||
/.gradle/
|
/.gradle/
|
||||||
|
|
||||||
# tam files
|
|
||||||
*.tam
|
|
||||||
|
23
tam
23
tam
@ -1,23 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
RED='\033[0;31m' # Red
|
|
||||||
GRN='\033[0;32m' # Green
|
|
||||||
NC='\033[0m' # No Color
|
|
||||||
|
|
||||||
file=""
|
|
||||||
|
|
||||||
if [ -z "$1" ]
|
|
||||||
then
|
|
||||||
printf "${RED}Usage: $0 file${NC}"
|
|
||||||
exit 1 # Exit with code 1, failure
|
|
||||||
else
|
|
||||||
file=$1
|
|
||||||
fi
|
|
||||||
|
|
||||||
printf "${GRN}Compiling file: $1.tri to $1.tam ...${NC}\n"
|
|
||||||
# Compile to tam
|
|
||||||
java -cp build/libs/Triangle-Tools.jar triangle.Compiler programs/$1.tri -o=$1.tam &> /dev/null
|
|
||||||
|
|
||||||
printf "${GRN}Running file: $1.tam ...${NC}\n"
|
|
||||||
# Run the Program
|
|
||||||
java -cp build/libs/Triangle-Tools.jar triangle.abstractMachine.Interpreter $1.tam
|
|
Reference in New Issue
Block a user