consegna.sh
来自「编译原理大作业---tiger编译器 包括semant,translate,m」· Shell 代码 · 共 67 行
SH
67 行
#!/bin/bashclearechoecho "Un compilatore TIGER (A.W.Appel 'modern compiler implementation in Java')"echo "Laboratorio di Compilatori - Gabriele Persia, g.persia@libero.it"echoecho "> Selezionare un comando:"echoOPTIONS="Compila CompilaD CompilaWT CompilaDWT StampaToken MostraSorgente Tree_Sintax Tree_CI Tree_CI_Canon Esci"select opt in $OPTIONS; do if [ "$opt" = "Esci" ]; then echo echo "Consegna terminata ;-)" echo exit elif [ "$opt" = "Compila" ]; then echo "File sorgente da compilare:" read SRC java Parse.Main SorgentiTiger/$SRC >log cat log echo elif [ "$opt" = "CompilaD" ]; then echo "File sorgente da compilare:" read SRC java Parse.Main SorgentiTiger/$SRC -d >log cat log echo elif [ "$opt" = "CompilaWT" ]; then echo "File sorgente da compilare:" read SRC java Parse.Main SorgentiTiger/$SRC -w >log cat log echo elif [ "$opt" = "CompilaDWT" ]; then echo "File sorgente da compilare:" read SRC java Parse.Main SorgentiTiger/$SRC -d -w >log cat log echo elif [ "$opt" = "StampaToken" ]; then echo "File sorgente:" read SRC ./analisi_lessicale.sh SorgentiTiger/$SRC echo elif [ "$opt" = "MostraSorgente" ]; then echo "File sorgente da visualizzare:" read SRC echo more SorgentiTiger/$SRC echo elif [ "$opt" = "Tree_Sintax" ]; then less Tree_Sintax echo elif [ "$opt" = "Tree_CI" ]; then less Tree_CI echo elif [ "$opt" = "Tree_CI_Canon" ]; then less Tree_CI_Canon echo else clear echo Comando errato. echo fidone
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?