Skip to content

Commit

Permalink
Renaming things to gator
Browse files Browse the repository at this point in the history
  • Loading branch information
Checkmate50 committed Jul 23, 2019
1 parent 3b01d3e commit ba03b3d
Show file tree
Hide file tree
Showing 12 changed files with 23 additions and 23 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.PHONY: all clean repl run build

all:
dune exec bin/lingc.bc
dune exec bin/gatorc.bc

repl:
dune utop src
Expand All @@ -13,7 +13,7 @@ run:
cd examples/; SRC=$(src) yarn run start

build:
dune build bin/lingc.bc
dune build bin/gatorc.bc
dune build && dune install

clean:
Expand Down
6 changes: 3 additions & 3 deletions bin/dune
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(executable
(name lingc)
(public_name lingc)
(libraries lingl))
(name gatorc)
(public_name gatorc)
(libraries gatorl))
6 changes: 3 additions & 3 deletions bin/lingc.ml → bin/gatorc.ml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
open Lingl
open Gatorl

let program : TagAst.prog option ref = ref None

Expand All @@ -12,11 +12,11 @@ let run_interp : bool ref = ref false

let emit_ts : bool ref = ref false

let usage_msg = "Linguine Help Center\n"
let usage_msg = "Gator Help Center\n"
let spec_list : (Arg.key * Arg.spec * Arg.doc) list =
[
("-i", Arg.Set run_interp,
"Runs the given file with the linguine interpreter (replaces standard output)");
"Runs the given file with the gator interpreter (replaces standard output)");
("-t", Arg.Set emit_ts,
"Emits Typescript (replaces standard output)")
]
Expand Down
Empty file added gator.opam
Empty file.
4 changes: 2 additions & 2 deletions src/check.ml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
open CoreAst
open TagAst
open TagAstPrinter
open GatorAst
open GatorAstPrinter
open Util
open Printf
open Str
Expand Down
4 changes: 2 additions & 2 deletions src/checkDriver.ml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
(* Main driver for type checking, for unit testing*)

open CoreAst
open TagAst
open TagAstPrinter
open GatorAst
open GatorAstPrinter

(* Current program file and parsed program. *)
let file : string option ref = ref None
Expand Down
2 changes: 1 addition & 1 deletion src/dune
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
(ocamllex lexer)

(library
(name lingl)
(name gatorl)
(libraries str))
File renamed without changes.
2 changes: 1 addition & 1 deletion src/tagAstPrinter.ml → src/gatorAstPrinter.ml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

open CoreAst
open Util
open TagAst
open GatorAst

let rec string_of_dexp (d : dexp) : string =
match d with
Expand Down
4 changes: 2 additions & 2 deletions src/parseDriver.ml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
(* Main driver for parsing, for unit testing*)

open CoreAst
open TagAst
open TagAstPrinter
open GatorAst
open GatorAstPrinter

(* Current program file and parsed program. *)
let file : string option ref = ref None
Expand Down
12 changes: 6 additions & 6 deletions src/parser.mly
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

%{
open CoreAst
open TagAst
open GatorAst
open Str

exception ParseException of string
Expand Down Expand Up @@ -102,14 +102,14 @@ let mat = Str.regexp "mat\\([0-9]+\\)"
the starting point is for parsing the language. The following
declaration says to start with a rule (defined below) named [prog].
The declaration also says that parsing a [prog] will return an OCaml
value of type [TagAst.expr]. *)
value of type [GatorAst.expr]. *)

%start main
(* The explicit types of some key parser expressions to help with debugging *)
%type <TagAst.prog> main
%type <TagAst.exp> exp
%type <TagAst.comm> comm
%type <TagAst.term> term
%type <GatorAst.prog> main
%type <GatorAst.exp> exp
%type <GatorAst.comm> comm
%type <GatorAst.term> term

(* The following %% ends the declarations section of the grammar definition. *)

Expand Down
2 changes: 1 addition & 1 deletion src/typedAstPrinter.ml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

open CoreAst
open Util
open TagAstPrinter
open GatorAstPrinter
open TypedAst

let string_of_vec (v: vec) : string =
Expand Down

0 comments on commit ba03b3d

Please sign in to comment.