package lua_parser

  1. Overview
  2. Docs
A Lua 5.2 Parser

Install

Dune Dependency

Authors

Maintainers

Sources

1.0.0.tar.gz
md5=040b79da95d5dbe7d5d2ecc03320b72e
sha512=537e2b38bf8590e9fc4592f4e39a6a8ad3029693e6b052376d342c13be9349fa4db3d3a2557e7ffaeb6580ad929d681271d951d0b619d3c6ca448042412e4a74

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.