{"added":null,"apiVersion":1,"behindSince":null,"buildDepends":["wip/ocaml-odoc"],"categories":["wip","devel"],"comment":"OCaml lexer generator for Unicode","compare":null,"dependentCount":null,"description":"sedlex is a lexer generator for OCaml, similar to ocamllex, but\nsupporting Unicode. Contrary to ocamllex, lexer specifications for\nsedlex are embedded in regular OCaml source files.\n\nThe lexers work with a new kind of \"lexbuf\", similar to ocamllex\nLexing lexbufs, but designed to support Unicode, and abstracting\nfrom a specific encoding. A single lexer can work with arbitrary\nencodings of the input stream.\n\nsedlex is the successor of the ulex project. Contrary to ulex which\nwas implemented as a Camlp4 syntax extension, sedlex is based on\nthe new \"-ppx\" technology of OCaml, which allow rewriting OCaml\nparse trees through external rewriters. (And what a better name\nthan \"sed\" for a rewriter?)\n\nAs any -ppx rewriter, sedlex does not touch the concrete syntax of\nthe language: lexer specifications are written in source file which\ncomply with the standard grammar of OCaml programs. sedlex reuse\nthe syntax for pattern matching in order to describe lexers (regular\nexpressions are encoded within OCaml patterns). A nice consequence\nis that your editor (vi, emacs, ...) won't get confused (indentation,\ncoloring) and you don't need to learn new priority rules. Moreover,\nsedlex is compatible with any front-end parsing technology: it\nworks fine even if you use camlp4 or camlp5, with the standard or\nrevised syntax.","flavors":[],"html":"https://daemonports.org/netbsd/wip/ocaml-sedlex/","kind":"port","lastUpdate":null,"license":["mit"],"maintainer":"netbsd-users@NetBSD.org","name":"ocaml-sedlex","newest":false,"newestVersion":null,"noVulnData":false,"origin":"wip/ocaml-sedlex","otherSystems":[],"packages":null,"pkgName":"ocaml-sedlex-2.1","related":["wip/haxe","wip/ocaml-odoc","wip/ocaml-ptmap","wip/ocaml-sha"],"repository":"pkgsrc-wip","requiredBy":["wip/haxe"],"requiredByCount":1,"runDepends":["devel/ocaml-ppx_tools","lang/ocaml","wip/ocaml-gen"],"status":null,"system":"netbsd","systemLabel":"NetBSD","version":"2.1","versions":null,"vulnerabilities":null,"www":"https://github.com/ocaml-community/sedlex"}
