From 9015f04b8cfd5cb3f50bcf7e46b2387372ab48a7 Mon Sep 17 00:00:00 2001 From: Juuso Mikkonen Date: Tue, 26 Mar 2019 20:10:05 +0200 Subject: [PATCH] Add cleanup script Also removes a generated file from version control --- build.sh | 2 +- clean.sh | 1 + parser.mli | 75 ------------------------------------------------------ 3 files changed, 2 insertions(+), 76 deletions(-) create mode 100755 clean.sh delete mode 100644 parser.mli diff --git a/build.sh b/build.sh index 1ef1f41..6cd2c69 100755 --- a/build.sh +++ b/build.sh @@ -1,5 +1,5 @@ ocamlyacc parser.mly -ocamllex Lexer.mll +ocamllex lexer.mll ocamlc -o troll \ syntax.ml\ parser.mli parser.ml \ diff --git a/clean.sh b/clean.sh new file mode 100755 index 0000000..ce8459d --- /dev/null +++ b/clean.sh @@ -0,0 +1 @@ +rm *.cmo *.cmi parser.mli parser.ml lexer.ml troll \ No newline at end of file diff --git a/parser.mli b/parser.mli deleted file mode 100644 index e735ac8..0000000 --- a/parser.mli +++ /dev/null @@ -1,75 +0,0 @@ -type token = - | NUM of (int*(int*int)) - | ID of (string*(int*int)) - | STRINGS of (string list *(int*int)) - | D of ((int*int)) - | Z of ((int*int)) - | SUM of ((int*int)) - | LEAST of ((int*int)) - | LARGEST of ((int*int)) - | MIN of ((int*int)) - | MAX of ((int*int)) - | CONC of ((int*int)) - | HASH of ((int*int)) - | COUNT of ((int*int)) - | AND of ((int*int)) - | PLUS of ((int*int)) - | MINUS of ((int*int)) - | TIMES of ((int*int)) - | DIVIDE of ((int*int)) - | MOD of ((int*int)) - | LPAR of ((int*int)) - | RPAR of ((int*int)) - | LBRACE of ((int*int)) - | RBRACE of ((int*int)) - | COMMA of ((int*int)) - | ASSGN of ((int*int)) - | EQ of ((int*int)) - | NEQ of ((int*int)) - | LT of ((int*int)) - | GT of ((int*int)) - | LE of ((int*int)) - | GE of ((int*int)) - | DOTDOT of ((int*int)) - | SEMI of ((int*int)) - | LET of ((int*int)) - | IN of ((int*int)) - | FOREACH of ((int*int)) - | DO of ((int*int)) - | IF of ((int*int)) - | THEN of ((int*int)) - | ELSE of ((int*int)) - | CHOOSE of ((int*int)) - | DROP of ((int*int)) - | KEEP of ((int*int)) - | PICK of ((int*int)) - | DIFFERENT of ((int*int)) - | MEDIAN of ((int*int)) - | ACCUM of ((int*int)) - | REPEAT of ((int*int)) - | WHILE of ((int*int)) - | UNTIL of ((int*int)) - | FUNCTION of ((int*int)) - | CALL of ((int*int)) - | COMPOSITIONAL of ((int*int)) - | EOF of ((int*int)) - | SAMPLE of ((int*int)) - | HCONC of ((int*int)) - | VCONCL of ((int*int)) - | VCONCR of ((int*int)) - | VCONCC of ((int*int)) - | QUESTION of ((int*int)) - | MINIMAL of ((int*int)) - | MAXIMAL of ((int*int)) - | SETMINUS of ((int*int)) - | LBRACK of ((int*int)) - | RBRACK of ((int*int)) - | FIRST of ((int*int)) - | SECOND of ((int*int)) - | SIGN of ((int*int)) - | TILDE of ((int*int)) - | BANG of ((int*int)) - | FLOAT of (float*(int*int)) - -val dice : - (Lexing.lexbuf -> token) -> Lexing.lexbuf -> Syntax.Syntax.program