12 lines
195 B
OCaml
12 lines
195 B
OCaml
module Syntax = struct
|
|
type expr =
|
|
| Int of
|
|
{ value : int
|
|
; pos : Lexing.position
|
|
}
|
|
end
|
|
|
|
module IR = struct
|
|
type value = Int of int
|
|
type expr = Val of value
|
|
end
|