Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3d932fd
commit 23f6b59
Showing
7 changed files
with
105 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
rm ./srcs/* -f | ||
cp ../src/lex/*.ml ./srcs/ | ||
cp ../src/lex/*.mli ./srcs/ | ||
cp ../src/lex/*.mly ./srcs/ | ||
cp ../src/lex/*.mll ./srcs/ | ||
rm ./srcs/lexer.ml | ||
rm -f ./srcs/lexer.mli | ||
rm ./srcs/parser.ml | ||
rm ./srcs/parser.mli | ||
rm ./srcs/nfa.ml | ||
rm ./srcs/nfa.mli | ||
(cd ./srcs; | ||
patch main.ml < ../patch_main.patch; | ||
); | ||
|
||
cd ./build | ||
rm * | ||
cp ../srcs/* ./ | ||
../../my_lex lexer.mll > lexer.ml | ||
../../my_yacc parser.mly > myparser.output | ||
#../../main -mli lexer.ml -l ../../lib/ # 若干Openまわりが壊れてるのでいったん諦める | ||
cp ../lexer.mli lexer.mli | ||
../../main syntax.ml parser.ml lexer.ml convert.ml main.ml -l ../../lib | ||
|
||
mv a.out ../a.out | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters