package lua_parser
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/ast.ml.html
Source file ast.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
(* The MIT License Copyright (c) 2020 Jason D. Nielsen <drjdnielsen@gmail.com> *) open Sexplib.Conv type ast = | Break | Ellipsis | Ident of string | Number of string | Bool of string | String of string | Args of ast | Assign of ast * ast | Binop of string * ast * ast | Do of ast | Elseif of ast * ast | Fassign of ast * ast | Fbody of ast * ast | For1 of ast * ast * ast * ast | For2 of ast * ast * ast * ast * ast | Forin of ast * ast * ast | Function of ast * ast | FunctionE of ast | Goto of ast | If1 of ast * ast | If2 of ast * ast * ast | If3 of ast * ast * ast | If4 of ast * ast * ast * ast | Key1 of ast | Key2 of ast | Label of ast | Lassign of ast * ast | Lfunction of ast * ast | Lnames of ast | Member of ast * ast | Mcall of ast * ast * ast | Pexp of ast | Repeat of ast * ast | Return of ast | Table of ast | Unop of string * ast | Vargs of ast | While of ast * ast | Clist of ast list | Elist of ast list | FNlist of ast list | Slist of ast list [@@deriving sexp, show] let extract_list = function | Clist i -> i | Elist i -> i | FNlist i -> i | Slist i -> i | _ -> failwith "Not a valid ast list!"
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>