package lua_parser

  1. Overview
  2. Docs
A Lua 5.2 Parser

Install

Dune Dependency

Authors

Maintainers

Sources

1.0.2.tar.gz
md5=35b1a3c607a0e23f81322f4b99b11d13
sha512=ed3995928aaf87d68114a9d5bee1ca5b41dd359134589ef6eba4ea2cc5b41a78bc4ac35603301dc1bd29260a0908c6142fabf689a7a7d8b76a3abf8ecdbd9194

doc/src/lua_parser.lib/pp_ast.ml.html

Source file pp_ast.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
(*
 The MIT License                                                                                                                                 
                                                                                                                                                 
 Copyright (c) 2020 Jason D. Nielsen <drjdnielsen@gmail.com>
 *)

open Ast
open Sexp_pretty

let pp_ast_sexp ast =
  print_endline (sexp_to_string (sexp_of_ast ast))
(** Print AST as an S-expression. *)

let pp_ast_show ast = print_endline (show_ast ast)
(** Print AST in JSON *)
OCaml

Innovation. Community. Security.