mirror of
https://github.com/LucasVbr/postscript-compiler.git
synced 2026-05-13 17:22:00 +00:00
26 lines
390 B
OCaml
26 lines
390 B
OCaml
|
|
#load "lang.cmo";;
|
|
#load "parser.cmo" ;;
|
|
#load "lexer.cmo" ;;
|
|
#load "typing.cmo";;
|
|
#load "instrs.cmo";;
|
|
#load "gen.cmo";;
|
|
#load "interf.cmo";;
|
|
|
|
open Interf;;
|
|
open Lang;;
|
|
open Instrs;;
|
|
|
|
(* For using the parser:
|
|
|
|
- Evaluate this file (use.ml)
|
|
- parse "Tests/rectangles.c" ;;
|
|
|
|
* For code generation:
|
|
|
|
- Evaluate this file (use.ml)
|
|
- run_test "Tests/rectangles.c" "Tests/rectangles.ps";;
|
|
*)
|
|
|
|
|