package passage

  1. Overview
  2. Docs

Source file template_ast.ml

1
2
3
4
5
6
7
8
9
10
11
12
open Printf

type ast_node =
  | Iden of string
  | Text of string

type ast = ast_node list

let to_string node =
  match node with
  | Iden s -> sprintf "Iden(%S)" s
  | Text s -> sprintf "Text(%S)" s
OCaml

Innovation. Community. Security.