Skip to content

Alice-Ke/PolyGo

 
 

Repository files navigation

PolyGo

For our team project.

###What's new:

16:00 11/16

  1. Uploaded ast_checker.ml, use command ocamlbuild ast_check.native" to build the ast_checker.
  2. Uploaded pretty_print.ml.
  3. Made change to newast.ml.
locals: variabledecl list;

21:00 11/16
1. Uploaded `newast.ml` and `newparser.mly`, with reduce/shift conflicts eliminated.

11:52 11/19
1. Uploaded working `ast.mli` and `parser.mly`.

19:34 11/19
1. Add array initialize checker.
2. Cancel `typ_a`, all types are included in `typ`.

20:20 11/22
1. Add `polygo.ml`, `codegen.ml`, `mytest.sh`, `test.pg`. Currently we can just do something like:
```C print("Hello world"); ```
2. Update `Makefile`, in order to run our compiler, use this command in terminal: ```Shell make clean && make && ./mytest.sh ```
3. `test.pg` is just a small demo, you can play with it if you like. But I cannot guarantee our compiler can do something more than print a string. :)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • OCaml 97.1%
  • Makefile 2.8%
  • Shell 0.1%